예제 #1
0
 public Task AddClaimAsync(
     [Summary("Claim to be added")]
     AuthorizationClaim claim,
     [Summary("Access of a claim, whether granted or denied")]
     ClaimMappingType type,
     [Summary("Role which to add the claim to")]
     IRole role)
 {
     return(_authorizationService.AddClaimMappingAsync(role, type, claim));
 }
예제 #2
0
        public async Task AddClaimAsync(
            [Summary("Claim to be added")]
            AuthorizationClaim claim,
            [Summary("Access of a claim, whether granted or denied")]
            ClaimMappingType type,
            [Remainder]
            [Summary("Role which to add the claim to")]
            IRole role)
        {
            await _authorizationService.AddClaimMappingAsync(role, type, claim);

            await Context.AddConfirmation();
        }