title: Hide and visible the div tags of Layout.cshtml on the basis of user role in Asp.net MVC4(Razor)
body: <p>I am having a master page which is having some menus for a Role called user and other menus are for the role of Admin, So what i am willing is to check the role of the user and and show some div tags and hide others on the basis of user role.</p>
  
  <p><strong>As, we don't have controller for layout.cshtml, so how i can set the viewModel for layout view
  Wherein i can check the role of the current user</strong></p>
  
  <p>How to do role based checking on the layout.cshtml.</p>
  
  <p>I have been through followin question but it has not been answered by now</p>
  
  <p><a href="https://stackoverflow.com/questions/11829937/how-to-show-or-hide-controls-based-on-roles-asp-net-mvc-4-razor">How to Show or hide controls based on roles - ASP.NET MVC 4 Razor</a></p>
  
  <p>So,Please tell me the possible solution and which way would be the best for applying role based checking in layout.cshtml</p>