コード例 #1
0
ファイル: LoginController.cs プロジェクト: 18673327092/WebV1
        public ActionResult AuthSubmit(string value)
        {
            SysConfig model = sysConfigService.Get(1000).Data;

            model.NewValue = value;
            return(Json(sysConfigService.Update(model)));
        }
コード例 #2
0
        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));
        }