Say you want to display a menu that has many elements... Some elements are exclusive to users with "administrator" role. I know how to restrict controllers methods using
[Authorize(Roles = "Administrators")]
but I want to figure out a way to display a specific html thing depending on the user roles
example
<ul>
<li>Menu Item 1</li>
<% //if is admin%>
<li>Menu Item 2 (for admins only)</li>
</ul>
How do I do thiis?