banging my head against a wall with this one. I have an oDataController that returns a view model entity, but everytime I call it, I get a 406 client side. Building this in .Net MVC 5 oData v4 with Web API 2.
When I step through the code, I can see that the routing is working as my function is hit. I can also get the $metadata without issue.
I have checked that the return value (IQueryable<>) is valid server side and does return results so something is happening after my function exits and before the response is received by the client (Postman).
All the threads I have seen that relate to the 406 seem to indicate its a routing issue but mine can't be because the function is being hit.
Any ideas?