title: Usage of User.IsInRole() in a View
body: <p>In my mvc5 project to disable an action link for unauthorized users i did like this</p>
  
  <pre><code>@if (User.IsInRole("Admin") | User.IsInRole("Manager"))
  { 
          @Html.ActionLink("Add New Record", "ProductTypeIndex", "ProductType")
  } 
  </code></pre>
  
  <p>But if there are many roles to check then this @if() gets long. How to avoid this? Do i need custom helpers for this(if so how can i approach it)? Help appreciated.. </p>