Esempio n. 1
0
        public ActionResult Check(Account account)
        {
            if (Link.Authorization(account))
            {
                Session["login"] = account.Login;
                return(Redirect("~"));
            }
            else
            {
                ViewBag.AuthorizationError = true;
            }

            return(View("~/Views/Home/Index.cshtml"));
        }