예제 #1
0
        public ActionResult AdminDelete(int[] ids)
        {
            if (_sysAdminService.Delete(m => ids.Contains(m.Id) && !m.IsAdmin) > 0)
            {
                return(JsonSuccess(""));
            }

            return(JsonError("操作失败"));
        }
예제 #2
0
 public async Task <ApiResult <string> > Delete([FromBody] List <string> ids) => await _adminService.Delete(ids);