Exemple #1
0
        public ActionResult SignUp(SignUpModel signUpModel)
        {
            if (!ModelState.IsValid)
            {
                return(View(signUpModel));
            }

            var signUpResult = _retaskService.SignUp(signUpModel.Email, signUpModel.Password);

            if (signUpResult.Ok)
            {
                return(RedirectToAction("SignedUp"));
            }

            ViewBag.Message = _retaskServiceErrorMessageProvider.GetErrorMessage(signUpResult.Error);

            return(View(signUpModel));
        }
 public ServiceResult <object> SignUp(
     [Description("Email")] string email,
     [Description("Password")] string password)
 {
     return(_retaskService.SignUp(email, password));
 }