コード例 #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)));
        }
コード例 #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)));
        }
コード例 #3
0
ファイル: ArticleModel.cs プロジェクト: kazitor/WtfWebApp
        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)));
        }