Esempio n. 1
0
        public ActionResult LoginConfirmed(user u)
        {
            bool result = repo.Login(u.Email, u.Password);

            if (result)
            {
                Session["Email"] = u.Email;
                return(RedirectToAction("ViewAllUsers"));
            }
            else
            {
                ViewBag.Msg = "Check Credentials!";
                return(View("LoginUser"));
            }
        }