Call OData to return 406 not acceptable solution
When using OData in a Web API project, always return 406 not acceptable
Under
Http://stackoverflow.com/questions/26676879/webapi-and-odatacontroller-return-406-not-available
And
http://stackoverflow.com/questions/26676879/webapi-and-odatacontroller-return-406-not-available/27191598#27191598
Get the solution:
In the controller's code, the using System.Web.Http.OData is changed to the using System.Web.OData;
Other about the use of OData in. NET:
Odata query:
http://www.odata.org/documentation/odata-version-2-0/uri-conventions/
http://www.odata.org/libraries/
http://www.nuget.org/packages/Microsoft.AspNet.OData/
Http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-v4/create-an-odata-v4-endpoint
Https://msdn.microsoft.com/en-us/library/ff478141.aspx
Http://jerther.blogspot.ca/2014/11/aspnet-web-api-2-help-pages-odata_28.html
http://www.codeproject.com/script/Articles/ArticleVersion.aspx?aid=634772&av=928984
Call OData to return 406 not acceptable solution