public ActionResult Index([Bind(Include = "Email, Password")] Employee employee) { if (ModelState.IsValid) { string hashedPassword = Encription.ComputeSha256Hash(employee.Password); Employee emp = db.Employee.Where(x => x.Email == employee.Email && x.Password == hashedPassword && x.Status == 1).FirstOrDefault(); if (emp != null) { Session["Employee"] = emp; return(RedirectToAction("Index", "Home")); } } ViewBag.Message = "Email hoặc password không khớp !!!"; return(View()); }