Route Config MVC

Saturday, May 3, 2014

I have some questions about routes. I have a route like this:

routes.MapRoute( name: "Venda", url: "{controller}/{action}/{automovelId}/{consumidorId}/{revendedoraId}", defaults: new { controller = "Venda", action = "Index", automovelId = UrlParameter.Optional, consumidorId = UrlParameter.Optional, revendedoraId = UrlParameter.Optional } );

But when I call the Edit action parameters are passed as follows:


I want it that way:


How can I do this? Thanks.