diff --git a/AsbCloudApp/Services/IFileService.cs b/AsbCloudApp/Services/IFileService.cs index d30310ea..6c742daa 100644 --- a/AsbCloudApp/Services/IFileService.cs +++ b/AsbCloudApp/Services/IFileService.cs @@ -23,7 +23,7 @@ namespace AsbCloudApp.Services Task MarkAsDeletedAsync(int idFile, CancellationToken token = default); Task> GetInfosByCategoryAsync(int idWell, int idCategory, CancellationToken token = default); - Task DeletedAsync(int id, CancellationToken token); + Task DeleteAsync(int id, CancellationToken token); string GetUrl(FileInfoDto fileInfo); string GetUrl(int idFile); string GetUrl(int idWell, int idCategory, int idFile, string dotExtention); diff --git a/AsbCloudInfrastructure/Services/DrillingProgramApacheService.cs b/AsbCloudInfrastructure/Services/DrillingProgramApacheService.cs index fcd3f25f..1f0cd0d5 100644 --- a/AsbCloudInfrastructure/Services/DrillingProgramApacheService.cs +++ b/AsbCloudInfrastructure/Services/DrillingProgramApacheService.cs @@ -43,13 +43,13 @@ namespace AsbCloudInfrastructure.Services matchFilesIterator.MoveNext(); var matchFile = matchFilesIterator.Current; while (matchFilesIterator.MoveNext()) - await fileService.DeletedAsync(matchFilesIterator.Current.Id, token) + await fileService.DeleteAsync(matchFilesIterator.Current.Id, token) .ConfigureAwait(false); if (filesInfos.All(f => f.UploadDate <= matchFile.UploadDate)) return matchFile; else - await fileService.DeletedAsync(matchFile.Id, token) + await fileService.DeleteAsync(matchFile.Id, token) .ConfigureAwait(false); } diff --git a/AsbCloudInfrastructure/Services/DrillingProgramService.cs b/AsbCloudInfrastructure/Services/DrillingProgramService.cs index 1e2ba67f..783a34d7 100644 --- a/AsbCloudInfrastructure/Services/DrillingProgramService.cs +++ b/AsbCloudInfrastructure/Services/DrillingProgramService.cs @@ -41,13 +41,13 @@ namespace AsbCloudInfrastructure.Services matchFilesIterator.MoveNext(); var matchFile = matchFilesIterator.Current; while (matchFilesIterator.MoveNext()) - await fileService.DeletedAsync(matchFilesIterator.Current.Id, token) + await fileService.DeleteAsync(matchFilesIterator.Current.Id, token) .ConfigureAwait(false); if (filesInfos.All(f => f.UploadDate <= matchFile.UploadDate)) return matchFile; else - await fileService.DeletedAsync(matchFile.Id, token) + await fileService.DeleteAsync(matchFile.Id, token) .ConfigureAwait(false); } diff --git a/AsbCloudInfrastructure/Services/FileService.cs b/AsbCloudInfrastructure/Services/FileService.cs index e0de5e79..cfab3a80 100644 --- a/AsbCloudInfrastructure/Services/FileService.cs +++ b/AsbCloudInfrastructure/Services/FileService.cs @@ -191,7 +191,7 @@ namespace AsbCloudInfrastructure.Services return await db.SaveChangesAsync(token).ConfigureAwait(false); } - public async Task DeletedAsync(int idFile, CancellationToken token) + public async Task DeleteAsync(int idFile, CancellationToken token) { var fileInfo = await db.Files .FirstOrDefaultAsync(f => f.Id == idFile, token)