Hide MVC driver and action

0

Good afternoon, I hope it's a good question. I want to hide or change how you see the URL of the actions and controller.

Is it possible?

For example, I want it to look like this:

link

link Something like that

    
asked by Maximiliano Cesán 13.11.2017 в 16:20
source

1 answer

0
 public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

        routes.MapRoute(
            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
        );
    }

If I'm not mistaken, it's in Project RouteConfig where you can modify your URL.

    
answered by 13.11.2017 в 16:31