public Domain.Files MapToDomain(Dto.FilesDto filesDto) { return(new Domain.Files() { Extension = filesDto.Extension, Key = filesDto.Key, Location = filesDto.Location, Name = filesDto.Name, Rename = filesDto.Rename }); }
private bool IsRepeatedInFileList(Dto.FilesDto file) { foreach (var fileL in fileList.Items) { if (file.Location == ((Dto.FilesDto)fileL).Location) { return(true); } } return(false); }
public string GetFileFolderLocation(Dto.FilesDto file) { return(file.Location.Replace($"\\{file.Name}", string.Empty)); }