private void SeedBanners(DigitalSignageContext pContext) { IList <Schedule> lDateIntervalList = pContext.DateIntervals.ToList(); Banner lBanner1 = new Banner() { Name = "Noticias de deporte", Description = "Noticias de la actualidad deportiva, provenientes de distintas fuentes. Tambien contiene otros textos útiles", //falta contenido, pero eso falta tratar los rss }; var query = from interval in lDateIntervalList where interval.ActiveDays.Count() == 5 select interval; foreach (var interval in query) { lBanner1.AddSchedule(DomainServiceLocator.Resolve <IScheduleChecker>(), interval); } ; lBanner1.AddBannerItem(pContext.Texts.ToList()[3]); lBanner1.AddBannerItem(pContext.Texts.ToList()[4]); //IList<RssSource> lista = pContext.RssSources.ToList(); lBanner1.AddSource(pContext.RssSources.ToList()[0]); lBanner1.AddSource(pContext.RssSources.ToList()[2]); pContext.Banners.Add(lBanner1); }