I have a View which needs to show and hide details based on the users role. I have 2 options
- using an inline if statement in the View to show and hide details
- Create multiple partial views and use to controller to detect the role and then load the appropriate Partial view.
Im a newbie to MVC so can someone please advise what the best way is for approaching this problem.