jojacafe
1/26/2017 - 12:44 PM

Adding ASP.NET Identity to an Empty or Existing Web Project https://www.asp.net/identity/overview/getting-started/adding-aspnet-identity-to

http://www.dotnetfunda.com/articles/show/2898/working-with-roles-in-aspnet-identity-for-mvc
//https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles

@if (ViewContext.HttpContext.User.IsInRole("Administrator"))
{
    <dt>Test</dt>
}

[Authorize(Roles = "Administrator")]