Пример #1
0
        public async Task <IActionResult> DeleteRole([FromBody] MenuEditDto parm)
        {
            var model = _settingService.GetModelAsync(m => m.Id == parm.id).Result.data;

            model.MenuJson = parm.menu;
            return(Ok(await _settingService.UpdateAsync(model)));
        }
Пример #2
0
        public async Task <ApiResult <string> > DeleteRole(int id, string menu)
        {
            var model = _settingService.GetModelAsync(m => m.Id == id).Result.data;

            model.MenuJson = menu;
            return(await _settingService.UpdateAsync(model));
        }
Пример #3
0
 public async Task <IActionResult> EditSetting([FromBody] WxSetting parm)
 {
     return(Ok(await _settingService.UpdateAsync(parm)));
 }
Пример #4
0
 public async Task <ApiResult <string> > EditSetting(WxSetting parm)
 {
     return(await _settingService.UpdateAsync(parm));
 }