From e8d98a0887b75a6db35af9261baa65015120685d Mon Sep 17 00:00:00 2001 From: KharchenkoVV Date: Thu, 19 Aug 2021 16:34:36 +0500 Subject: [PATCH] CS2-55: Renamed SaveFileProperties...() to SaveFileInfos() --- AsbCloudApp/Services/IFileService.cs | 2 +- AsbCloudInfrastructure/Services/FileService.cs | 2 +- AsbCloudWebApi/Controllers/FileController.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AsbCloudApp/Services/IFileService.cs b/AsbCloudApp/Services/IFileService.cs index 4c334401..2a345a37 100644 --- a/AsbCloudApp/Services/IFileService.cs +++ b/AsbCloudApp/Services/IFileService.cs @@ -10,7 +10,7 @@ namespace AsbCloudApp.Services public interface IFileService { string RootPath { get; } - IDictionary SaveFilesPropertiesToDb(int idWell, + IDictionary SaveFileInfos(int idWell, int idCategory, IEnumerable<(string fileName, int idWell, int idCategory, DateTime date, int idUser)> filesInfo); diff --git a/AsbCloudInfrastructure/Services/FileService.cs b/AsbCloudInfrastructure/Services/FileService.cs index b4f60d3e..9b09ce02 100644 --- a/AsbCloudInfrastructure/Services/FileService.cs +++ b/AsbCloudInfrastructure/Services/FileService.cs @@ -23,7 +23,7 @@ namespace AsbCloudInfrastructure.Services this.db = db; } - public IDictionary SaveFilesPropertiesToDb(int idWell, int idCategory, + public IDictionary SaveFileInfos(int idWell, int idCategory, IEnumerable<(string fileName, int idWell, int idCategory, DateTime date, int idUser)> filesInfo) { var fileIdsToNames = new Dictionary(); diff --git a/AsbCloudWebApi/Controllers/FileController.cs b/AsbCloudWebApi/Controllers/FileController.cs index c84065c8..76cb5b45 100644 --- a/AsbCloudWebApi/Controllers/FileController.cs +++ b/AsbCloudWebApi/Controllers/FileController.cs @@ -51,7 +51,7 @@ namespace AsbCloudWebApi.Controllers var fileInfoCollection = files.Select(f => (f.FileName, idWell, idCategory, DateTime.Now, (int)idUser)); - var fileNamesAndIds = fileService.SaveFilesPropertiesToDb(idWell, + var fileNamesAndIds = fileService.SaveFileInfos(idWell, idCategory, fileInfoCollection);