示例#1
0
 public static void ToFile(this FileDto fileDto, File file)
 {
     //file.Id = fileDto.Id;
     file.Path = fileDto.Path;
     file.Added = fileDto.Added;
     file.FileName = fileDto.FileName;
 }
示例#2
0
 public static File ToFile(this FileDto fileDto)
 {
     var file = new File
     {
         //file.Id = fileDto.Id;
         Path = fileDto.Path,
         Added = fileDto.Added,
         FileName = fileDto.FileName
     };
     return file;
 }