I have a driver like this
[Route("/Historial/{inicio}/{final}")]
public ActionResult Historial(int inicio, int final)
{
Return PartialView();
}
I tried to access that driver through
I have a driver like this
[Route("/Historial/{inicio}/{final}")]
public ActionResult Historial(int inicio, int final)
{
Return PartialView();
}
I tried to access that driver through
Analyzing a bit
Attribute Routing in ASP.NET Web API 2
I can see that the idea is to give a context to the service that you expose
I do not know what controller you are placing it on but maybe if you use
public class Cliente : Controller
{
[Route("cliente/{inicio:int}/{final:int}/historial")]
public ActionResult Historial(int inicio, int final)
{
Return PartialView();
}
}
I think you bring some more context when defining
I would also see if the "/" that you define in front of History could not be affecting