In a WEB API controller, can we have the same method name with different HTTP Verbs?
[HttpGet] public string Test() { return \"
Comment out the following code:
config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } );
And write the following code:
config.Routes.MapHttpRoute("DefaultApiWithAction", "api/{controller}/{action}");