I m working on ASP.NET MVC 4 application.I have a dashboard and my users groups will be based on Windows Domain So I am using WIndows Authentication for authenticating users
You can use Following code for role based checking
@if(Request.IsAuthenticated) { if(User.IsInRole("Admin")) { this menu item is for Admin role } if(User.IsInRole("User")) { this menu item is for User role } } @* For unknown user *@ else { this menu item is for Unknown user }