Example #1
0
        public ActionResult SignIn(string Email, string Password)
        {
            //Check user credetials

            if (UserProcessor.CheckUserPassword(Email, Password))
            {
                Session["Email"] = Email;
                return(RedirectToAction("Index", "Home"));
            }
            else
            {
                ModelState.AddModelError("LogOnError", "The user name or password provided is incorrect.");
                return(View());
            }
        }