Beispiel #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);
        }
        public virtual async Task <MyUserDto> UpdateAsync(Guid id, MyUserUpdateDto input)
        {
            var myUser = await _myUserRepository.GetAsync(id);

            ObjectMapper.Map(input, myUser);
            var updatedMyUser = await _myUserRepository.UpdateAsync(myUser);

            return(ObjectMapper.Map <AppUser, MyUserDto>(updatedMyUser));
        }