public ActionResult ChangePassword(ChangePasswordViewModel vModel) { AdminManage vAdminManage = new AdminManage(); bool vResult = vAdminManage.ChangePassword("Admin", vModel.OldPassword, vModel.NewPassword); if (vResult) ModelState.AddModelError("", "密码更新成功"); else ModelState.AddModelError("", "密码更新失败"); return View(vModel); }