I want to adjust the _LoginPartial.cshtml to display:
Logged in as <username>(<rolename>) | Logoff
So I wish to add the first role name associated with the logged in user.
I can't access it via the user object, so how do I access this information?
This is the current code:
@Html.ActionLink("Logged in as " + User.Identity.GetUserName(), "Manage", "Account", routeValues: null, htmlAttributes: new { title = "Manage" })