public static Task <bool> CanDeleteMembershipsAsync( this IUserAuthorizationService userAuthorizationService, RegionEntity regionEntity, string regionRoleId, string userEmail) => userAuthorizationService.IsAuthorizedAsync( regionEntity, RegionOperationRequirement.DeleteMemberships(regionRoleId, userEmail));
public static Task <bool> CanCreateMembershipAsync( this IUserAuthorizationService userAuthorizationService, RegionEntity regionEntity, string regionRoleId) => userAuthorizationService.IsAuthorizedAsync(regionEntity, RegionOperationRequirement.CreateMembership(regionRoleId));