public JsonResult ChangePassword(int userId, string password) { if (userId == 0) { return(Json(new { result = "error", mesage = "用户编号为空" })); } string errMsg = string.Empty; appUserBll.ChangePassword(userId, password, ref errMsg); var result = new { result = "ok", message = "修改密码成功" }; if (!string.IsNullOrEmpty(errMsg)) { result = new { result = "error", message = errMsg }; } //Common.LogHelper.InsertLog(String.Format("修改用户密码,ID-{0}", userId.ToString()), 43, "后台用户"); return(Json(result, "text/html", JsonRequestBehavior.AllowGet)); }