do you think it's useful? do you have another way to achieve this?
eg.:
var barsListRoute = new PatternRoute("BarsList", "/bars")
.DefaultForController.Is("bars")
.DefaultForAction.Is("list")
.RestrictTo(Verbs.Get | Verbs.Head);
var newBarRoute = new PatternRoute("NewBar", "/bars")
.DefaultForController.Is("bars")
.DefaultForAction.Is("new")
.RestrictTo(Verbs.Post);
var barRoute = new PatternRoute("Bar", "/bars/<barId>")
.DefaultForController.Is("bars")
.DefaultForAction.Is("show")
.RestrictTo(Verbs.Get | Verbs.Head);
var updateBarRoute = new PatternRoute("UpdateBar", "/bars/<barId>")
.DefaultForController.Is("bars")
.DefaultForAction.Is("update")
.RestrictTo(Verbs.Put);
I have an implementation ready. waiting for input.
--
Ken Egozi.
http://www.kenegozi.com/blog
http://www.delver.com
http://www.musicglue.com
http://www.castleproject.org
http://www.gotfriends.co.il
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---