Esempio n. 1
0
        public ActionResult SignIn(string Mail, string Pw)
        {
            var state = _userEngine.GetAll().First(x => x.Mail == Mail && x.Pw == Pw);

            if (state != null)
            {
                Session["login"] = state;

                return(RedirectToAction("Index", "Home"));
            }
            else
            {
                return(View());
            }
        }