title: WEB.API does not deserialize incoming JSON in POST method
body: <p>I have created Web.Api based on .Net-Core. There are two methods: </p>
  
  <ol>
  <li><strong>IEnumerable GetRoles()</strong> - (Get)</li>
  <li><strong>ResponseObject GetUsers(PagerRequest pagerRequest</strong>) - (Post). It has the following attributes: [Route("api/users/getusers")]
      [HttpPost]</li>
  </ol>
  
  <p>Both methods are called by Angular. Method GetRoles is working find but problem is in POST.</p>
  
  <p>PagerRequest is a simple class which has a few int properties. It's filled in by Angular. Fiddler shows correct JSON: </p>
  
  <pre><code>POST http://localhost/Pir.API/api/users/getusers HTTP/1.1
  Host: localhost
  Connection: keep-alive
  Content-Length: 84
  Accept: application/json, text/plain, */*
  Origin: http://localhost:4200
  User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
  content-type: application/json
  Referer: http://localhost:4200/
  Accept-Encoding: gzip, deflate, br
  Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7
  
  {
    "CountButtons": 5,
    "ItemsCount": 0,
    "PageSize": 5,
    "CurrentPageIndex": 0
  }
  </code></pre>
  
  <p>GetUsers method is calling but input parameter is not initialized. In another words desirialization is not working and I cannot understand why.</p>
  
  <p>Before this project was based on classic .Net and run in the IIS.  It was working fine. But .Net CORE is a problems.</p>
  
  <p>Who knows where the problem is?</p>
  
  <p>Below code examples:</p>
  
  <p>-------------- PagerRequest.cs --------------------</p>
  
  <pre><code>public class PagerRequest
  {
       public int ItemsCount { get; set; }
       public int PageSize { get; set; }
       public int CurrentPageIndex { get; set; }
       public int CountButtons { get; set; }
   }
  </code></pre>
  
  <p>-------------- PagerRequest.ts --------------------</p>
  
  <pre><code>export class PagerRequest{
      ItemsCount:number;
      PageSize:number;
      CurrentPageIndex:number;
      CountButtons:number;    
  }
  </code></pre>