public ActionResult Index(string email, string password) { if (UserBO.CheckUser(email, password)) { Session["Auth"] = true; return(RedirectToAction("Index", "ManagePage")); } else { ViewBag.error = true; return(View()); } }