public static void ImportData(this MediaScheduleSettings target, RegularSchedule source) { target.BusinessName = source.BusinessName; target.DecisionMaker = source.DecisionMaker; target.Status = source.Status; target.PresentationDate = source.PresentationDate; target.UserFlightDateStart = source.UserFlightDateStart; target.UserFlightDateEnd = source.UserFlightDateEnd; target.MondayBased = source.MondayBased; target.UseDemo = source.UseDemo; target.ImportDemo = source.ImportDemo; target.Demo = source.Demo; target.Source = source.Source; target.DemoType = (Business.Media.Enums.DemoType)(Int32)source.DemoType; target.SelectedSpotType = (Business.Media.Enums.SpotType)(Int32)source.SelectedSpotType; target.Source = source.Source; foreach (var oldDaypart in source.Dayparts) { var daypart = new Business.Media.Entities.NonPersistent.Schedule.Daypart(); daypart.ImportData(oldDaypart); target.Dayparts.Add(daypart); } foreach (var oldStation in source.Stations) { var station = new Business.Media.Entities.NonPersistent.Schedule.Station(); station.ImportData(oldStation); target.Stations.Add(station); } target.DigitalProductListViewSettings.ImportData(source.ViewSettings.HomeViewSettings); target.DigitalPackageSettings.ImportData(source.ViewSettings.DigitalPackageSettings); }
public static void ImportData(this MediaScheduleSettings target, RegularSchedule source) { target.BusinessName = source.BusinessName; target.DecisionMaker = source.DecisionMaker; target.Status = source.Status; target.PresentationDate = source.PresentationDate; target.UserFlightDateStart = source.UserFlightDateStart; target.UserFlightDateEnd = source.UserFlightDateEnd; target.MondayBased = source.MondayBased; target.UseDemo = source.UseDemo; target.ImportDemo = source.ImportDemo; target.Demo = source.Demo; target.Source = source.Source; target.DemoType = (Business.Media.Enums.DemoType)(Int32) source.DemoType; target.SelectedSpotType = (Business.Media.Enums.SpotType)(Int32) source.SelectedSpotType; target.Source = source.Source; foreach (var oldDaypart in source.Dayparts) { var daypart = new Business.Media.Entities.NonPersistent.Schedule.Daypart(); daypart.ImportData(oldDaypart); target.Dayparts.Add(daypart); } foreach (var oldStation in source.Stations) { var station = new Business.Media.Entities.NonPersistent.Schedule.Station(); station.ImportData(oldStation); target.Stations.Add(station); } target.DigitalProductListViewSettings.ImportData(source.ViewSettings.HomeViewSettings); target.DigitalPackageSettings.ImportData(source.ViewSettings.DigitalPackageSettings); }
private static void ImportData( this Business.Media.Entities.NonPersistent.Schedule.Station target, Legacy.Media.Entities.Schedule.Station source) { target.Name = source.Name; target.Logo = source.Logo; target.Available = source.Available; }