protected void Application_Start(object sender, EventArgs e) { GlobalConfiguration.Configuration.Routes.MapHttpRoute( "DefaultHttpRoute", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); } }