We are developing an ASP.NET MVC application, and we decide separate our API Services/Controllers inside a folder named for example API_Services instead put them directly in the controllers.
The problem is: how we set/define the route for that? Tipically is like the following code (at App_Start folder and WebApiConfig.cs file) :
routes.MapHttpRoute(
name: "API Default",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
We try set the routeTemplate like:
routeTemplate: "API_Services/api/{controller}/{id}",
Or this:
routeTemplate: "api/API_Services/{controller}/{id}",
Doesn't work... someone can help us? Thank you!