public async Task <bool> ExistsRoleAsync(Guid roleId) { var exists = await _identityRepository.ExistsRoleAsync(roleId); if (!exists) { throw new UserFriendlyErrorPageException(string.Format(_identityServiceResources.RoleDoesNotExist().Description, roleId), _identityServiceResources.RoleDoesNotExist().Description); } return(true); }