Ejemplo n.º 1
0
        public ActionResult Romans(int id = 0)
        {
            List<Podcast> podcastModelForView = new List<Podcast>();
            PodcastDataService podcastDataService = new PodcastDataService();

            podcastModelForView = podcastDataService.RetrieveAllPodcasts("Romans", new List<PodcastCollection>(), podcastModelForView);

            return View(podcastModelForView);
        }
Ejemplo n.º 2
0
        public ActionResult Podcast()
        {
            //string uri = "http://mljtrust.org/scripture/galatians/";
            string uri = "http://www.mljtrust.org/collections/book-of-romans/";

            List<PodcastCollection> podcastCollection = new List<PodcastCollection>();
            HtmlDocument htmlDoc = GetHtmlDoc(uri);

            podcastCollection = GetCollections(htmlDoc, "chapter-list", uri);

            PodcastDataService podcastDataService = new PodcastDataService();
            podcastDataService.StoreCollection("Romans", new Newtonsoft.Json.JsonSerializer(), podcastCollection);

            return View();
        }