@if(Request.IsAuthenticated) { Welcome @User.Identity.Name! [ @Html.ActionLink("Log Off", "LogOff", "Account") ] } else { @:[ @Html.ActionLink("Log On", "LogOn", "Account") ] }