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