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; }
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; }