Example #1
0
 public IUserDto Map(IUserIdentityModel userIdentityModel)
 {
     return new UserDto
     {
         UserId = userIdentityModel.UserId,
         Email = userIdentityModel.Email
     };
 }
Example #2
0
        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);
        }