private static IEnumerable <Channel> MapChannelsToDomain(Entities.Advertisement advertisement)
 {
     return(advertisement.AdvertisementChannels.Select(x =>
                                                       new Channel {
         Id = x.Channel.Id, Name = x.Channel.Name, IsDigital = x.Channel.IsDigital
     }));
 }
 public Advertisement ToDomain(Entities.Advertisement advertisement)
 {
     return(new Advertisement
     {
         Id = advertisement.Id,
         Name = advertisement.Name,
         ClientId = advertisement.ClientId,
         Channels = MapChannelsToDomain(advertisement)
     });
 }