Route controller to Foo/{Action}
I开发者_如何学C was wondering if there is some easy way to route an entire controller to something like:
Foo/{Action}?
or do I have to write a route for every action in that controller?
/M
Not totally sure what you want todo, but how about:
routes.MapRoute(
"FooMap",
"Foo/{action}",
new { controller = "Foo"})
精彩评论