Esempio n. 1
0
        public ActionResult Podcasts()
        {
            //Pull the news articles to show
            IEnumerable <NewsArticle> articles = RepositoryFactory.GetInstance().GetPodcasts();

            //Get configuration information
            IBlogConfiguration config = ConfigurationFactory.GetInstance();

            ViewArticles articleCollection = new ViewArticles(articles, config)
            {
                ViewCaption = "PODCASTS"
            };

            return(View(VIEW_ARTICLES, articleCollection));
        }
Esempio n. 2
0
 public ViewArticles(IEnumerable <NewsArticle> articles, IBlogConfiguration config)
 {
     Articles            = articles;
     ImageRelativePath   = config.ImageDirectoryRelativePath;
     PodcastRelativePath = config.PodcastDirectoryRelativePath;
 }
 public ViewArticles(IEnumerable<NewsArticle> articles, IBlogConfiguration config)
 {
     Articles = articles;
       ImageRelativePath = config.ImageDirectoryRelativePath;
       PodcastRelativePath = config.PodcastDirectoryRelativePath;
 }