Beispiel #1
0
        public async Task <IdentityResult> RegisterUserAsync(UserForRegisterDto userForRegisterDto)
        {
            var user = _map.MapToSsuser(userForRegisterDto);

            user.UserStatusId = 1;
            var result = await _user.CreateUserAsync(user, userForRegisterDto.Password);

            if (!result.Succeeded)
            {
                return(result);
            }
            result = await _user.AddUserRoleOnRegisterAsync(user);

            return(result);
        }