title: OData result with an empty list(Zero count) results in an error
body: <p>I have implemented OData for querying the list generated by my API. But some times the list is empty and the OData Result should just return an empty json but it doesnt. Instead it throws up the following error</p>
  
  <p>Value must be greater than or equal to 1. Parameter name: value Actual value was 0.</p>
  
  <p>This is my controller method</p>
  
  <pre><code> // Get states by Id
      [HttpGet]
      [ActionName("GetStatesByID")]    
      public ODataResult&lt;DataAccess.Model.State&gt; GetStatesByID(ODataQueryOptions options,int id)
      {
  
          var states = this.Repository.GetAllStatesByCountry(id).AsQueryable&lt;DataAccess.Model.State&gt;();
  
          var results = (options.ApplyTo(states) as IQueryable&lt;DataAccess.Model.State&gt;);
  
  
          long count = states.Count();
  
          return new ODataResult&lt;DataAccess.Model.State&gt;(results, null, count);
  
      }
  </code></pre>
  
  <p>I can put the count as 0 whenever the list is empty and that will not throw an error but that really is not a good practice, so i wanted to know if there is any other work around for this so that ODataResult returns an empty json when the list is empty rather than throwing up an error? </p>
  
  <p>Thanks</p>