I'm trying to hide controls based on a user's role. I used to be able to do something like
@if (User.IsInRole("Admin"))
{Html.ActionLink("RolesAdmin", "Index", "RolesAdmin")}
in the view but this doesn't seem to work anymore. After much digging I found that Identity 2.0 doesn't use this at all.
Is there still something I can use directly from the View? Or am I doing this completely wrong?