title: How to return a different object from the one you run a query on in OData?
body: <p>I'm trying to return an object from the controller's <code>Get</code> method that is of a different class from the class the query is run on.</p>
  
  <p>Based on the answer <a href="https://stackoverflow.com/questions/16470823/is-there-a-way-to-represent-summary-rows-with-odata">here</a>, this is what I'm doing:</p>
  
  <pre><code>public PageResult&lt;OutputPoco&gt; Get(ODataQueryOptions&lt;InputPoco&gt; odataQueryOptions)
  </code></pre>
  
  <p>When trying to run this I get <code>406 Not Acceptable</code>. What am I missing? Is there a working example out there of this approach?</p>
  
  <p>Update:
  I am using <code>ODataController</code>.
  <code>OutputPoco</code> contains a reference to <code>InputPoco</code>. I need sorting and filtering to work (on <code>InputPoco</code>).</p>