@using Microsoft.AspNet.Identity
@if (Request.IsAuthenticated)
{
using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
{
@Html.AntiForgeryToken()
-
@{ var user = (System.Security.Claims.ClaimsIdentity)User.Identity; }
@Html.ActionLink("Welcome " + user.FindFirstValue("FirstName") + " " + user.FindFirstValue("LastName"), "Index", "Home", routeValues: null, htmlAttributes: new { title = "Manage" })
-
Practice
-
Account
}
}
else
{
- @Html.ActionLink("Register", "RegisterPractice", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })
- @Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
}