Beispiel #1
0
        public IActionResult Register(RegisterViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View("Register", model));
            }

            //Upload the data
            model.account.Login = AccountLogic.CreateLogin(model.login);
            AccountLogic.CreateAccount(model.account);

            return(View(model));
        }