public async Task <LoginResultDto> Register(RegisterUserDto registerInfo) { var user = MiCakeApp.User.Create(registerInfo.Phone, registerInfo.Password, registerInfo.Name, registerInfo.Age); var userInfo = await _userRepo.AddAndReturnAsync(user); var token = await _jwtManager.CreateToken(userInfo); return(new LoginResultDto() { AccessToken = token.AccessToken, HasUser = true, UserInfo = null }); }