private static async Task AddNewRole(RoleManager <ApplicationRole> roleManager, RoleType roleType) { ApplicationRole role = new ApplicationRole { Name = roleType.ToDisplayName() }; await roleManager.CreateAsync(role); }
private static async Task AddNewRole(RoleManager <ApplicationRole> roleManager, RoleType roleType) { ApplicationRole role = new ApplicationRole { Name = roleType.ToDisplayName() }; await roleManager.CreateAsync(role); }