public static BackupData FromDTO(this DTO.BackupData source) { var h = new BackupData(); h.DatasetGroup = source.DatasetGroup; h.DatasetName = source.DatasetName; if (source.BackupItem != null) { h.BackupItem = source.BackupItem.Select(wld => wld.FromDTO()).ToList(); } return(h); }
public static DTO.BackupData ToDTO(this BackupData source) { var h = new DTO.BackupData(); h.DatasetGroup = source.DatasetGroup; h.DatasetName = source.DatasetName; if (source.BackupItem != null) { h.BackupItem = source.BackupItem.ConvertAll(wld => wld.ToDTO()).ToArray(); } return(h); }
public static DTO.BackupData ToDTO(this BackupData source) { var h = new DTO.BackupData(); h.DatasetGroup = source.DatasetGroup; h.DatasetName = source.DatasetName; if (source.BackupItem != null) h.BackupItem = source.BackupItem.ConvertAll(wld => wld.ToDTO()).ToArray(); return h; }
public BackupData ConvertFromDTO(DTO.BackupData source) { return(source.FromDTO()); }