示例#1
0
        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);
 }