Exemplo n.º 1
0
        public ActionResult UserLogin(string userAccount, string userPw)
        {
            if (userTool.isUserEqulsDB(userAccount, userPw))
            {
                System.Web.Security.FormsAuthentication.SetAuthCookie(userAccount, false);
                return(RedirectToAction("Index", "List"));
            }

            TempData["userAccount"] = userAccount;
            return(RedirectToAction("Index"));
        }