Programming in C#: How to write route for this scenario on newest questions tagged c# – Stack Overflow

I have one URL hosting two site, main site and group site. Both main site and group site has login, change password, reset password, etc.

For example :

www.abc.com -> main site
www.abc.com/login -> main site login

www.abc.com/Agroup/login -> group site login
www.abc.com/Agroup/changepassword -> group site change password

www.abc.com/Bgroup/login -> group site login but for Bgroup

I want Agroup and Bgroup is handled by one controller which is making the portion (Agroup/Bgroup) a parameter in action, while one controller handling the main site.

How to write route for that, thanks

See Answers


source: http://stackoverflow.com/questions/6173874/how-to-write-route-for-this-scenario
Programming in C#: programming-in-c



online applications demo