예제 #1
0
        public ValidationResult Register(CustomerWebAccount customerWebAccount)
        {
            CustomerWebAccount _customerWebAccount = customerWebAccount;
            ValidationResult   _validationResult   = _valkyraRegisterRepository.EmailExists(customerWebAccount);

            if (_validationResult.ResultCode == 0)
            {
                _valkyraRegisterRepository.CreateCustomerWebAccount(_customerWebAccount);
                EmailValidation emailValidation = _valkyraRegisterRepository.CreateValidationLink(_customerWebAccount);
                SendMailHelper  sendMailHelper  = new SendMailHelper();
                sendMailHelper.SendMail(customerWebAccount, emailValidation);
            }
            return(_validationResult);
        }