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)); }
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; }