There is as I remove the controller and action without interfering with the url of the default route? For example:
From: http://mysite.com/departaments/products/footwear/male where departaments = controller, action = products and footwear and male = parameters
To: http://mysite.com/footwear/male
So I take the controller and action on a custom route example:
routes.MapRoute
(
"Products",
"{p0}/{p1}/{p2}/{p3}/{p4}/{p5}",
new
{
controller = "Departaments",
action = "Products",
p0 = "",
p1 = "",
p2 = "",
p3 = "",
p4 = "",
p5 = ""
},
new String[]
{
"MvcApplication1.Controllers"
}
);
routes.MapRoute
(
"Default",
"{controller}/{action}/{p0}",
new
{
controller = "Home",
action = "Index",
p0 = ""
},
new String[]
{
"MvcApplication1.Controllers"
}
);