Esempio n. 1
0
        public ActionResult Login(user userObj)
        {
            userDAO userObjDao = new userDAO();
            String  email      = userObjDao.validateUser(userObj);

            if (email != null)
            {
                return(Redirect("/home/home?email=" + email));
            }
            else
            {
                ViewBag.txtLogin = userObj.txtLogin;
                ViewBag.msg      = "Incorrect Info";
            }
            return(View());
        }