I have the following route, where I get the delegate id: link
So it's working, but I'd like to show the name of the rep link / Index / JsBlaBla
In my MapRoute I'm doing so unsuccessfully
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Representante",
url: "nome-do-representante/Index/{chave}",
defaults: new { controller = "Representante", action = "Index" },
constraints: new { chave = @"^[a-zA-Z0-9\-\/_]{2,}$" }
);
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}