示例#1
0
        public async Task <IActionResult> DeleteRole([FromBody] ParmString obj)
        {
            var list = Utils.StrToListString(obj.parm);

            return(Ok(await _settingService.UpdateAsync(m => new SysAppSetting()
            {
                IsDel = true
            }, m => list.Contains(m.Guid))));
        }
示例#2
0
        public async Task <ApiResult <string> > DeleteRole(string parm)
        {
            var list = Utils.StrToListString(parm);

            return(await _settingService.UpdateAsync(m => new SysAppSetting()
            {
                IsDel = true
            }, m => list.Contains(m.Guid)));
        }
示例#3
0
 public async Task <ApiResult <string> > EditRole(SysAppSetting parm)
 {
     return(await _settingService.UpdateAsync(parm));
 }