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
MapODataServiceRoute is extension method. So to use it a reference to its namespace is required. For me it was fixed by referencing:
MapODataServiceRoute
using System.Web.Http.OData.Extensions;