@if (Request.IsAuthenticated) {
  • @Html.ActionLink(User.Identity.Name, "Manage", "Account", null, new {@class = "username", title = "Manage"})
  • @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new {id = "form-logout"})) { @Html.AntiForgeryToken() }
  • } else {
  • @Html.ActionLink("Login", "Login", "Account", null, new {title = "Login"})
  • }