Hi All,
I'm trying to add multiple routing rules and it seems that only the
first rule is actually added
What am I doing wrong here?
here is my attempt:
public static void Register(IRoutingRuleContainer rules)
{
rules.Add(new PatternRoute("/<controller>/<name>/
<categoryId>/")
.DefaultForArea().IsEmpty
.DefaultForAction().Is("searchresult")
.Restrict("categoryId").ValidInteger);
rules.Add(new PatternRoute("/<controller>/<name>/<Id>/")
.DefaultForArea().IsEmpty
.DefaultForAction().Is("view")
.Restrict("Id").ValidInteger);
// you can add as many rules as you want
}
Cheers
eyal
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---