I want to generate the login link or profile link in a view, depending on user authentication state, but nothing happens, and I get an empty place like this: `<div> </div>`

```
<div>
     @if (User.Identity.IsAuthenticated)
     {
          Html.ActionLink(GlobalRes.BlogEditProfile, "Edit", "Profile");
     }
     @if (!User.Identity.IsAuthenticated)
     {
          Html.ActionLink(GlobalRes.Login, "Login", "Account");
     }
</div>

```

Please tell me where my mistake is?