I got this Route:
routes.MapRoute(
name: \"Default\",
url: \"{controller}/{action}/{id}\",
defaults: new { id = U
I got this Route:
What you have shown is a route for MVC controllers. I hope you realize that Web API controllers are an entirely different thing. They have their own routes defined in the ~/App_Start/WebApiConfig.cs
.
So make sure tat you have included the {action}
token in your Web API route definition (which I repeat once again has nothing to do with your MVC route definitions):
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{action}"
);