Hi all,
I'm sure this is an easy thing to do, however I am too stupid to
figure it out. Basically I have a MR application which has some
controllers that are within an area and some that are not. I have the
following routes specified:
rules.Add(new PatternRoute("[controller]/[action]")
.DefaultForArea().IsEmpty
.DefaultForController().Is("Home")
.DefaultForAction().Is("Index"));
Some of my controllers are now inside an area called "Admin" so I
added the following as an extra rule:
rules.Add(new PatternRoute("Admin/[controller]/[action]")
.DefaultForController().Is("Users")
.DefaultForAction().Is("Index"));
But this didn't work. I've tried a number of different combinations
but can't find the magic formula. Any suggestions would be great.
Thanks in advance
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---