Пример #1
0
        public ActionResult Login(string user, string password)
        {
            User currentUser = Repo.ExistsUser(user.ToUpper(), password.ToUpper());

            if (currentUser != null)
            {
                Session["USER"] = currentUser.Name;
            }

            return(RedirectToAction("Index", "Home"));
        }