CS2-55: Renamed SaveFileProperties...() to SaveFileInfos()

This commit is contained in:
KharchenkoVV 2021-08-19 16:34:36 +05:00
parent bf823e1825
commit e8d98a0887
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ namespace AsbCloudApp.Services
public interface IFileService
{
string RootPath { get; }
IDictionary<string, int> SaveFilesPropertiesToDb(int idWell,
IDictionary<string, int> SaveFileInfos(int idWell,
int idCategory, IEnumerable<(string fileName, int idWell, int idCategory,
DateTime date, int idUser)> filesInfo);

View File

@ -23,7 +23,7 @@ namespace AsbCloudInfrastructure.Services
this.db = db;
}
public IDictionary<string, int> SaveFilesPropertiesToDb(int idWell, int idCategory,
public IDictionary<string, int> SaveFileInfos(int idWell, int idCategory,
IEnumerable<(string fileName, int idWell, int idCategory, DateTime date, int idUser)> filesInfo)
{
var fileIdsToNames = new Dictionary<string, int>();

View File

@ -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);