Before adding OData to my project, my routes where set up like this:
config.Routes.MapHttpRoute( name: \"ApiById\", routeTempl
If you are using OData V4, replace using System.Web.Http.OData;
using System.Web.Http.OData;
With using Microsoft.AspNet.OData; (Please check the comments for the latest library)
using Microsoft.AspNet.OData;
in the ODataController works for me.