title: Pass angular querystring to API controller as C# class by http.get
body: <p>I am sending request. And i want map parameters to C# class in Asp.Net Core Web.API controller. When i write to my method property name as parameter, it is working. But, i write class then it gave me error like "The input was not valid."</p>
  
  <p>I am sending my request by Postman as "Get"request. My request is
   <a href="http://localhost:5002/api/user/GetUsers?PageFirstIndex=0&amp;IsSortAscending=true&amp;PageSize=10&amp;SortBy=Id" rel="nofollow noreferrer">http://localhost:5002/api/user/GetUsers?PageFirstIndex=0&amp;IsSortAscending=true&amp;PageSize=10&amp;SortBy=Id</a></p>
  
  <p>When i wrote like this, it is working and all parameters came with value.</p>
  
  <pre><code>public async Task&lt;ServiceResult&gt; GetUsers(string SortBy, bool IsSortAscending, int Page, byte PageSize)
  {...}
  </code></pre>
  
  <p>But when i wrote like this as class, gave me error "The input was not valid.".</p>
  
  <pre><code>[HttpGet("GetUsers")]
  public async Task&lt;ServiceResult&gt; GetUsers(QueryObject queryFilter)
  {...}
  
  
  public class QueryObject
  {
     public string SortBy { get; set; }
     public bool IsSortAscending { get; set; }
     public int PageFirstIndex { get; set; }
     public byte PageSize { get; set; }
  }
  </code></pre>