MVC3: Areas and routes
I configured my MV开发者_如何学运维C3 app to use Areas (/Company1
, /Company2
, etc).
I am successful at calling /Company1/{controller}/{action}
and I would like to add another parameter to the route so that I could call it /Company1/Chicago/{controller}/{action}
or /Company1/Detroit/{controller}/{action}
.
I am imagining that in my solution folder structure it would flow similarly: Areas/Company1/Controllers/Chicago/{controller}
, Areas/Company1/Views/Chicago/{view}
.
What is involved to add that parameter to the route mapping?
Thanks.
精彩评论