Ejemplo n.º 1
0
        public IActionResult Signup(RegisterViewModel registerViewModel)
        {
            var result = _accountBll.SignUp(registerViewModel);

            if (result.Result.IsSuccess)
            {
                return(RedirectToAction("Login", "Account"));
            }
            else
            {
                ModelState.AddModelError("", result.Result.Message);
            }
            return(View());
        }