I am currently following this guide -> Link to asp.net website
As the guide says I added all the necessary packages via the nuget console and added the necessary usings
I fixed this by opening the package manager console, setting the default project to the project that gave the error message, and then:
Install-Package Microsoft.AspNet.WebApi.OData