private static void ImportData( this Business.Media.Entities.NonPersistent.Section.Content.Spot target, Legacy.Media.Entities.Section.Spot source) { target.Date = source.Date; target.Count = source.Count; }
private static void ImportData( this Business.Media.Entities.NonPersistent.Section.Content.Program target, Legacy.Media.Entities.Section.Program source) { target.Name = source.Name; target.Day = source.Day; target.Index = source.Index; target.Logo.ImportData(source.Logo); target.Station = source.Station; target.Daypart = source.Daypart; target.Time = source.Time; target.Length = source.Length; target.Rate = source.Rate; target.Rating = source.Rating; foreach (var oldSpot in source.Spots) { var spot = new Business.Media.Entities.NonPersistent.Section.Content.Spot(target); spot.ImportData(oldSpot); target.Spots.Add(spot); } }
private static void ImportData( this Business.Media.Entities.NonPersistent.Section.Content.Program target, Legacy.Media.Entities.Section.Program source) { target.Name = source.Name; target.Day = source.Day; target.Index = source.Index; target.Logo.ImportData(source.Logo); target.Station = source.Station; target.Daypart = source.Daypart; target.Time = source.Time; target.Length = source.Length; target.Rate = source.Rate; target.Rating = source.Rating; target.SummaryItem.ImportData(source.SummaryItem); foreach (var oldSpot in source.Spots) { var spot = new Business.Media.Entities.NonPersistent.Section.Content.Spot(target); spot.ImportData(oldSpot); target.Spots.Add(spot); } }