It is possible yes, for that change your RouteConfig
You’ll probably have the following code there:
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
Above this code add the following:
routes.MapRoute(
name: "BancoImagens",
url: "banco-de-imagens",
defaults: new { controller = "Home", action = "BancoImagens", id = UrlParameter.Optional }
);
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
Your action
within the controller
home
public ActionResult BancoImagens(){
}
Obs: It is important that custom routes stay above the route default
because he will "enter" into the first one that "marries"
Perfect ! I had already used the mapping... but I don’t know why it didn’t occur to me to do this hehe. Thanks !
– Leonardo Bonetti
Turns out kkk I was doing 1 here, here came the xD question
– Barbetta