I have the following controller
[Route("micontrolador")]
public class MiController : Controller
{
[Route("micontrolador/miaccion")]
public ActionResult Index() => View();
}
path micontrolador / miaccion
Is it necessary to indicate in the controller the path of this or just enough to add the [Route]
to the methods of the controllers?
To make it look like this
public class MiController : Controller
{
[Route("micontrolador/miaccion")]
public ActionResult Index() => View();
}
path micontrolador / miaccion