title: How can I avoid a 406 when receiving an OData.PageResult<T>?
body: <p>I have an ODataController that is returning a PageResult.</p>
  
  <p><strong>Api Example:</strong></p>
  
  <pre><code>public PageResult&lt;Customer&gt; Get(ODataQueryOptions options) {
  // cut some stuff out...
  
      PageResult&lt;Customer&gt; result = new PageResult&lt;Customer&gt;(
          searchResults as IEnumerable&lt;Customer&gt;,
          Request.GetNextPageLink(),
          Request.GetInlineCount());
      return result;
  </code></pre>
  
  <p>When I debug this, it seems to be fine and have a PageResult class built up correctly to return. On the Web side..</p>
  
  <p><strong>Web Example</strong></p>
  
  <pre><code>using (var client = new HttpClient()) {
      client.BaseAddress = new Uri(testURL);
      string searchUrl = "api/customer?$top=1&amp;$skip=0";
      client.DefaultRequestHeaders.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/json;odata=verbose"));
      HttpResponseMessage response = client.GetAsync(searchUrl).Result;
  </code></pre>
  
  <p>The response is a StatusCode 406, with a reason phrase stating the content was not acceptable. It also does this if I define a new MediaTypeWithQualityHeaderValue("application/json").</p>
  
  <p>What do I need to change so that I successfully consume this Api in the controller before passing it on to the view?</p>