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