我想有多个包含相同名称视图的路径文件夹结构:
/profile.aspx
/admin/profile.aspx
/user/editpost.aspx
/admin/editpost.aspx
/Controllers
|- PostController.cs
|- ProfileController.cs
Run Code Online (Sandbox Code Playgroud)
我希望能够将所有常规页面放在一个文件夹中,将管理页面放在另一个文件夹中.我是否需要组织我的Views文件夹,如:
/Views
/User
/Story
|- editpost.aspx
/Profile
|- profile.aspx
/Admin
/Story
|_ editpost.aspx
/Web
|- profile.aspx
Run Code Online (Sandbox Code Playgroud)
或者我有办法做到这一点:
/User
/Views
/Story
|- editpost.aspx
/Profile
|- profile.aspx
/Admin
/Views
/Story
|_ editpost.aspx
/Web
|- profile.aspx
Run Code Online (Sandbox Code Playgroud)
另外,如何为/ User和/ Admin编写/组织/使用可能具有相同名称的单独控制器?
如果我不清楚,请告诉我.
谢谢!