title: How to pass an object through url in .net core using httpget method?
body: <p>In .net core i use one controller method. that method is httpget method. That method has to receive the object as a parameter. In client side i Just pass the parameter like as</p>
  
  <pre><code>let data ={
  "Id":1,
  "Name":"xxx"
  }
  http://localhost/controller/GetObject?model=data
  </code></pre>
  
  <p>In controller side method is</p>
  
  <pre><code>[HttpGet]
  public IActionResult GetObject([FromBody]ViewModel model)
  {
  }
  </code></pre>
  
  <p>The controller method definitelly will be a httpget. I don't know how to do it using .net core? If anyone knows please convey..</p>