private void AddCustomerPermissionClaims() { Task.Run(async() => { var adminRoleInDb = await _roleManager.FindByNameAsync(RoleConstants.AdministratorRole); if (adminRoleInDb != null) { await _roleManager.AddCustomPermissionClaim(adminRoleInDb, "Permissions.Communication.Chat"); } }).GetAwaiter().GetResult(); }