I need to hide a link if a user is not logged in, and show the link if the user is logged in. I should use HTML. But the following:
@if(Authorize(Roles = "admin")) <li>@Html.ActionLink(@Resources.LayoutLang.myarticles, "MyReviews", "Review")</li>
does not work. How to check the role in HTML?