I am following an RPC approach in one of my Web APIs and for that purpose i am gonna use attribute routing in my controllers.
I am splitting my Controllers by making them partial
:
ALL the partial files under JDE folder must have the same RoutePrefix and actions will make the url unique.
namespace Enterprise.Api.Controllers.JDE.Distribution
{
[RoutePrefix("/api/jde/distribution")]
public partial class JDEController : ApiController
{
}
}
I want every partial file to have its own route prefix and every action to have a route.
If i put RoutePrefix
in more than one file i get an error.