Beispiel #1
0
        public static IEnumerable <ArticleModel> GetRecentArticles(int count)
        {
            var articles = StoredProcs.Articles_GetRecentArticles(Domains.PublishedStatus.Published, Article_Count: count).Execute();

            return(articles.Select(a => ArticleModel.FromTable(a)));
        }
Beispiel #2
0
        public static IEnumerable <ArticleModel> GetRecentArticlesByAuthor(string slug)
        {
            var articles = StoredProcs.Articles_GetRecentArticles(Domains.PublishedStatus.Published, Author_Slug: slug, Article_Count: 8).Execute();

            return(articles.Select(a => ArticleModel.FromTable(a)));
        }
Beispiel #3
0
        public static IEnumerable <ArticleModel> GetRecentArticlesBySeries(string slug, int?articleCount = 8)
        {
            var articles = StoredProcs.Articles_GetRecentArticles(Domains.PublishedStatus.Published, Series_Slug: slug, Article_Count: articleCount).Execute();

            return(articles.Select(a => ArticleModel.FromTable(a)));
        }