Пример #1
0
        public IActionResult SignUp([FromForm] User user)
        {
            UserCreator creator = new UserCreator(_userRepository);
            string      error;

            if (creator.ValidateCreation(user, out error))
            {
                creator.CreateUser(user);
                creator.SendActivationEmailAsync(user);

                return(RedirectToAction("Login"));
            }
            return(View());
        }