public async Task AddClaimsAsync(ApplicationUser user, IEnumerable <Claim> claims, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); var createUserClaimsDto = claims.Select(t => new CreateUserClaimDto { ClaimType = t.Type, ClaimValue = t.Value, UserId = user.Id }); await _userClaimRepository.Create(createUserClaimsDto); }
public void CreateClaim(UserClaimRequest userClaim) { _userClaimRepository.Create(userClaim); }