MVC framework seems to suggest creating possibly hundreds of .aspx or .cshtml pages. How do I avoid this?
https://softwareengineering.stackexchange.com/questions/80832
-
01-11-2019 - |
Frage
So, I was playing around with MVC3. Correct me if I'm wrong but based on all examples I've seen, it is suggested that you pretty much have a page for every model and Action from the Controller. So for example create a pretty basic management portal for the aspnetdb database.
Models
UserModel
RoleModel
Actions
CreateUserAction
DeleteUserAction
ChangeUserAction
CreateRoleAction
DeleteRoleAction
UpdateRoleAction
AssignUserToRoleAction
AssignUsersToRoleAction
AssignUserToRoleAction
AssignUsersToRolesAction
DeleteUsersFromRoleAction
etc...
Pages
CreateUser.aspx or .cshtml
DeleteUser.aspx or .cshtml
ChangeUser.aspx or .cshtml
CreateRole.aspx or .cshtml
DeleteRole.aspx or .cshtml
UpdateRole.aspx or .cshtml
AssignUserToRole.aspx or .cshtml
AssignUsersToRole.aspx or .cshtml
AssignUserToRole.aspx or .cshtml
AssignUsersToRoles.aspx or .cshtml
DeleteUsersFromRole.aspx or .cshtml
Keine korrekte Lösung