title: posting to an api with integer parameter not working with angularJs
body: <p>I trying to post to a api with accepts an integer parameter using angular as below</p>
  
  <pre><code> function getDailyErrors() {
              var uri = "/api/users/error-counts/";
              var inData = { numberOfDays : 5}
              return $http.post(uri, inData)
                  .then(function (response) {
                      return response.data;
                  });
          }
  </code></pre>
  
  <p>API</p>
  
  <pre><code> [HttpPost]
          [Route("api/users/error-counts/")]
          public MultiCategorySeriesDto&lt;int&gt; GetErrorCounts(int numberOfDays=15)
          {
              return _uow.Events.Errors(numberOfDays);
          }
  </code></pre>
  
  <p>for some reasons the API doesn't accept the parameter I passed instead takes the default int parameter. 
  <strong>May I know where the mistake is?</strong></p>