ASP NET Custom Routing

Posted by Botem Bao on Stack Overflow See other posts from Stack Overflow or by Botem Bao
Published on 2012-12-15T15:05:06Z Indexed on 2012/12/16 5:04 UTC
Read the original article Hit count: 259

Filed under:
|

I have following patterns

/invitation/mission/busstop  -- return the list of busstops
/invitation/mission/busstop/id  -- return a specific busstop
/invitation/mission/driver  -- return the list of drivers
/invitation/mission/driver/id  -- return a specific driver
/invitation/mission/driver/city/model/limit  -- query driver accoring to city, model and age limit
...
/invitation/questionair  -- return the list of questionairs
/invitation/questionair/id  -- return a specific questionair
/invitation/questionair/create  -- create a new questionair
/invitation/questionair/update/id  -- update a questionair
...

I expect the 'invitation' to be controller, and the rest to be action. Each of the above url should corresponds to a dedicated view page.

Can anyone help me to design the routes?

=====================================================================

I update the patterns, and add my expectation at the end of each url. Any suggest on the url patterns?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about routing