Error 404 when accessing the ASP .NET MVC 5 driver with JQuery

0

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

asked by JuankGlezz 28.07.2016 в 01:17
source

1 answer

0

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

    
answered by 28.07.2016 / 04:05
source