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
     });
 }
Example #2
0
        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));
 }