예제 #1
0
        public async Task <SignupResult> SignupAsync(string password, string repeatedPassword)
        {
            var signupUser = new SignupUserDTO()
            {
                Username         = Username,
                FirstName        = FirstName,
                LastName         = LastName,
                Email            = Email,
                Password         = password,
                RepeatedPassword = repeatedPassword,
                PhotoFileName    = PhotoFileName
            };

            await _signupService.UploadPhotoAsync(PhotoStream, PhotoFileName);

            return(await _signupService.SignupAsync(signupUser));
        }
예제 #2
0
        public async Task <ActionResult <SignupResult> > SignUp(SignupUserDTO signupUserDTO)
        {
            var signupResult = await _signupCheckService.SignupAsync(signupUserDTO);

            return(Ok(signupResult));
        }