title: How can I pass object param to get method in web api?
body: <p>How can I pass object parameter to get method? I searched a lot ,
  for example <a href="https://stackoverflow.com/questions/45766147/how-to-pass-parameters-to-asp-net-web-api-get-method">how to pass parameters to asp.net web api get method?</a></p>
  
  <p>Here It is mentioned that we should use [FromUri] but I could not see [FromUri] in .NET Core 2</p>
  
  <pre><code>[HttpGet]
  public IHttpActionResult GetDetails([FromUri] RetrieveDetails  eDetails)
  {}
  </code></pre>
  
  <p>following is the class</p>
  
  <pre><code>public class RetrieveDetails
  { 
      public string Name{ get; set; }     
      public string Type { get; set; } 
      public List&lt;MoreDetails&gt; MoreDetails { get; set; }
  } 
  
  public class MoreDetails  { 
    public string DetailName{ get; set; } 
  }
  </code></pre>
  
  <p>But FromUri can not be used in .NET Core 2</p>