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

Popular posts from this blog

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -

gtk - Python Window Resize -

c# - read full xml file data over tcp -