public JsonResult EditSetting(DataItemDetailEntity[] models) { var success = true; var message = "保存成功"; var bll = new DataItemDetailBLL(); try { bll.EditList("人身风险预控", models); } catch (Exception ex) { success = false; message = ex.Message; } return(Json(new AjaxResult() { type = success ? ResultType.success : ResultType.error, message = message })); }