Пример #1
0
        public async Task SetSocialSecurityNumberDemoAsync(string userName, string number)
        {
            var user = await _userRepository.GetAsync(u => u.UserName == userName);

            user.SetSocialSecurityNumber(number);
            await _userRepository.UpdateAsync(user);
        }
Пример #2
0
 public virtual async Task <MyUserDto> GetAsync(Guid id)
 {
     return(ObjectMapper.Map <AppUser, MyUserDto>(await _myUserRepository.GetAsync(id)));
 }