SyntaxFix
Write A Post
Hire A Developer
Questions
You should be able to use the @() expression syntax:
@()
<a class="@(User.Identity.IsAuthenticated ? "auth" : "anon")">My link here</a>