forked from ddrilling/AsbCloudServer
CS2-55: Renamed SaveFileProperties...() to SaveFileInfos()
This commit is contained in:
parent
bf823e1825
commit
e8d98a0887
@ -10,7 +10,7 @@ namespace AsbCloudApp.Services
|
|||||||
public interface IFileService
|
public interface IFileService
|
||||||
{
|
{
|
||||||
string RootPath { get; }
|
string RootPath { get; }
|
||||||
IDictionary<string, int> SaveFilesPropertiesToDb(int idWell,
|
IDictionary<string, int> SaveFileInfos(int idWell,
|
||||||
int idCategory, IEnumerable<(string fileName, int idWell, int idCategory,
|
int idCategory, IEnumerable<(string fileName, int idWell, int idCategory,
|
||||||
DateTime date, int idUser)> filesInfo);
|
DateTime date, int idUser)> filesInfo);
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
this.db = db;
|
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)
|
IEnumerable<(string fileName, int idWell, int idCategory, DateTime date, int idUser)> filesInfo)
|
||||||
{
|
{
|
||||||
var fileIdsToNames = new Dictionary<string, int>();
|
var fileIdsToNames = new Dictionary<string, int>();
|
||||||
|
@ -51,7 +51,7 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
var fileInfoCollection = files.Select(f =>
|
var fileInfoCollection = files.Select(f =>
|
||||||
(f.FileName, idWell, idCategory, DateTime.Now, (int)idUser));
|
(f.FileName, idWell, idCategory, DateTime.Now, (int)idUser));
|
||||||
|
|
||||||
var fileNamesAndIds = fileService.SaveFilesPropertiesToDb(idWell,
|
var fileNamesAndIds = fileService.SaveFileInfos(idWell,
|
||||||
idCategory, fileInfoCollection);
|
idCategory, fileInfoCollection);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user