Hi All,
We have the below requriement and we are told to do that in MVC 4
The requirement is
We have some roles like
- Administrator
- SrManager
- Manager
- TeamLead
- Associate
When the User belongs to the Administrator role logins to the application then the application should have following Views as menu item should shown in the left side of the application. Simillary for other users of the corresponding role.
Roles | Views |
Administrator | AdminView1 |
AdminView2 | |
AdminView3 | |
AdminView4 | |
AdminView5 | |
SrManager | SrManagerView1 |
SrManagerView2 | |
SrManagerView3 | |
SrManagerView4 | |
Manager | ManagerView1 |
ManagerView2 | |
ManagerView3 | |
ManagerView4 | |
TeamLead | TeamLeadView1 |
TeamLeadView2 | |
Associate | AssociateView1 |
AssociateView2 | |
AssociateView3 | |
AssociateView4 |
Suppose when the user belongs to the role SrManager wants to delegate the view SrManagerView3 toManager so that in SrManager absense the Manager can use that view to do the work of the SrManager role ...How can we achive the above in ASP.NET MVC4. Will the ASP.NET MVC 4 support Membership and Role provider? If it supports Membership and RoleProvider how can we achieve this ? If not what is the other way we can do this in ASP.NET MVC 4?