Skip to main content
added 360 characters in body
Source Link
Alexander Zeitler
  • 13.2k
  • 14
  • 92
  • 144

You need to define further routes in global.asax.cs like this:

routes.MapHttpRoute( name: "Api with action", routeTemplate: "api/{controller}/{action}/{id}", defaults: new { id = RouteParameter.Optional } ); routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); 

You need to define further routes in global.asax.cs

You need to define further routes in global.asax.cs like this:

routes.MapHttpRoute( name: "Api with action", routeTemplate: "api/{controller}/{action}/{id}", defaults: new { id = RouteParameter.Optional } ); routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); 
Source Link
Alexander Zeitler
  • 13.2k
  • 14
  • 92
  • 144

You need to define further routes in global.asax.cs