Help with .net mvc routing

131 Views Asked by At

I haven't been able to find something somewhat similar to rails nested resources. I want to be able to define routes like

Contributors/3/Activities

which is just simply ActivitiesController, Index, with Contributor_Id = 3

I know I could manually define this specific route (I wouldnt know how) but what I'm looking for here is actually some recommendations on getting a flexible solution for these kind of scenarios.

1

There are 1 best solutions below

1
On BEST ANSWER

Take a look at Here and Here to see if that might do the trick for you. It is a custom routing engine for RESTful routes done by Steve Hodgkiss.