public IUserDto Map(IUserIdentityModel userIdentityModel) { return new UserDto { UserId = userIdentityModel.UserId, Email = userIdentityModel.Email }; }
public Task<ClaimsIdentity> CreateUserIdentityClaimsAsync(IUserIdentityModel userIdentity, string authenicationType) { if (userIdentity == null) { throw new ArgumentNullException("userIdentity"); } if (String.IsNullOrWhiteSpace(authenicationType)) { throw new ArgumentNullException("authenicationType"); } return _userManager.CreateIdentityAsync(_userDtoMapper.Map(userIdentity), authenicationType); }