Exemplo n.º 1
0
        public IActionResult AddAccount(AccountCreatorModel account)
        {
            int userId    = HttpContext.Session.Get <int>(Session_Key);
            int accountId = accountDAL.CreateAccount(account);

            accountDAL.AddAccountToUser(accountId, userId);
            return(RedirectToAction("index"));
        }