@if (User.Identity.IsAuthenticated) {
  • @Html.ActionLink("Log out", "Logoff", "Account", null, null)
  • } else {
  • @Html.ActionLink("Logon", "Logon", "Account", null, null)
  • }