routing - ASP.NET MVC - Help defining route entry -
I want to create a path entry for a URL , which index string foo ) The action method of a controller named User
At the same time the default Home Controller should not be affected and should work normally
Any help is greatly appreciated
Thanks
You can try entering it before the default route:
Routes.MapRoute ("FooRoute" "{Foo}", new {controller = "home", action = "index", foo = UrlParameter.Optional});
Comments
Post a Comment