public ActionResult Login(ModelUser user) { var resultMsg = string.Empty; var logic = new LogicUser(); var model = logic.UserDetail(out resultMsg,base.AuthorizeInfo, user.Account); if (model != null && model.Account.Equals(user.Account) && model.Password.Equals(user.Password)) { Session["user"] = model.Account; ViewBag.CustomScript = UtilityScript.ShowMessage("登录成功!", isCreate: true, isSuccess: true, funName: "Goto"); } else { Session["user"] = null; ViewBag.CustomScript = UtilityScript.ShowMessage("登录失败!", isCreate: true, isSuccess: false); } return View(user); }