Before adding OData to my project, my routes where set up like this:
config.Routes.MapHttpRoute(
name: \"ApiById\",
routeTempl
The problem/solution in my case was even more stupid. I'd left test code in my action that returned a completely different model type, just a Dictionary
, and not my proper EDM model type.
Though I protest that the use of HTTP 406 Not Acceptable
to communicate the error of my ways, is equally as stupid.