public IActionResult LibraryDeleteFiles(uint[] fileIds) { try { if (fileIds.Length > 0) { UploadFileService.Update(x => new yoshop_upload_file() { is_delete = 1 }, l => fileIds.Contains(l.file_id)); } } catch (Exception e) { LogManager.Error(GetType(), e); return(No(e.Message)); } return(Yes("删除成功!")); }
public IActionResult LibraryDeleteGroup(int group_id) { try { var _ = UploadGroupService.Delete(l => l.group_id == group_id); if (_) { UploadFileService.Update(x => new yoshop_upload_file { group_id = 0 }, l => l.group_id == group_id); } } catch (Exception e) { LogManager.Error(GetType(), e); return(No(e.Message)); } return(Yes("删除成功!")); }