LocalGovIMS_localgov-ims/src/Admin/Views/Shared/_Login.cshtml
@using Microsoft.AspNet.Identity

@using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
{
    <div>
        @Html.AntiForgeryToken()
        <div class="float-start me-3 fw-bold">
            @User.Identity.Name
        </div>
        <div class="float-start me-3">
            <a href="javascript:document.getElementById('logoutForm').submit()">Log out</a>
        </div>
        @{Html.RenderPartial("_Environment");}
    </div>
}

