Is it possible to pass a parameter from "url" section to a method in "default" section of MapRoute?
routes.MapRoute(
name: "Language",
url: "{language}/{controller}/{action}/{id}-{description}",
defaults: new { Controller = "Home", action = "Index", id = UrlParameter.Optional, language = UrlParameter.Optional, description = GetDescription(id) }
);
I am able to call GetDescription() without any parameters but I dont know how to pass a parameter from url ie. GetDescription(id)?