public async Task <IActionResult> Delete(ulong fileId, CancellationToken token) { var file = await mDeleteFileRepo.GetByIdAsync(fileId, token); if (file == null) { return(NotFound()); } // Remove content await mContentProvider.DeleteFileAsync(file, token); // Remove from DB await mDeleteFileRepo.DeleteAsync(token, fileId); return(Ok(fileId)); }
public async void RemoveExecution(int id) { RemoveById(id); await _deleteRepo.DeleteAsync(id); }