开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜