public ActionResult AuthSubmit(string value) { SysConfig model = sysConfigService.Get(1000).Data; model.NewValue = value; return(Json(sysConfigService.Update(model))); }
public async Task <IActionResult> UpdateSysConfig(SysConfig sysConfig) { var res = await _sysConfigService.Update(sysConfig); if (res) { messageModel.response = true; } else { messageModel.response = false; messageModel.msg = "更新失败"; } return(new JsonResult(messageModel)); }