public ActionResult Login(AccountModel model) { if (_adminBLL.Login(model.account, model.password)) { System.Web.HttpContext.Current.Session["admin"] = model.account; return(RedirectToAction("Index", "Home")); } else { return(RedirectToAction("Login", new { msg = false })); } }