<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %> <% if (Request.IsAuthenticated) { %> Hola, <%: Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Administrar" }) %>! <% using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) { %> <%: Html.AntiForgeryToken() %> Cerrar sesión <% } %> <% } else { %> <% } %>