public virtual async Task <ClientClaimDto> AddClaimAsync(ClientClaimCreateDto clientClaimCreate)
        {
            var client = await ClientRepository.GetAsync(clientClaimCreate.ClientId);

            client.AddClaim(clientClaimCreate.Value, clientClaimCreate.Type);
            var clientClaim = client.FindClaim(clientClaimCreate.Value, clientClaimCreate.Type);

            return(ObjectMapper.Map <ClientClaim, ClientClaimDto>(clientClaim));
        }
Beispiel #2
0
 public virtual async Task <ClientClaimDto> AddClaimAsync(ClientClaimCreateDto clientClaimCreate)
 {
     return(await ClientAppService.AddClaimAsync(clientClaimCreate));
 }