开发者

MVC Routing - Tagging model items to specific routes

Just wondering if anyone has advice on tagging items to specific routes. For example, if I have 2 items, they're of the same model type however I want one of the item开发者_如何学Cs to have a route.

"folder1/folder2/{ItemName}"

and the other to have a route

"folder3/folder4/{ItemName}"

So I want to specify that item one is only viewable through route 1, and item2 is only viewable through route 2. Is this possible?

Hope that makes sense, basically I just want to be able to specify which route an object will use, thanks for any help.


I found what I was looking for, check out this link

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜