how to define routes in MVC

0

Good evening ..

I have the following Controller: HomController

with Action: Login

Clicking on the Enter My URL button is as follows:

link

I would like the URL not to be displayed this way, but:

link

I've already tried to reconfigure the route, but all my attempts did not work out:

        routes.MapMvcAttributeRoutes();

        routes.MapRoute(
            "T",
            "bemvindo",
            new { controller = "Home", action = "Login" }
        );

Where is my error in this setting?

Do I need to set the Rote attribute on my Controller / Action?

Thank you!

    
asked by anonymous 02.06.2018 / 23:42

0 answers