Writing a custom aspnet mvc action without an action
- by Toran Billups
I'm looking to write a custom route that would allow the following
http://localhost/blog/tags/foo
Currently this is what actually works
http://localhost/tags/Index/nhibernate
I've tried the following with no success - any help would be appreciated
routes.MapRoute(
"Tags",
"{controller}/{id}",
new { Controller = "Tags", action = "Index", id = UrlParameter.Optional }
);
routes.MapRoute(
"Tags",
"blog/{controller}/{id}",
new { Controller = "Tags", action = "Index", id = "" }
);