Example #1
0
 public IEnumerable <CommentModel> GetFeaturedComments()
 {
     return(CommentModel.GetFeaturedCommentsForArticle(this));
 }
Example #2
0
 public IList <CommentModel> GetFeaturedComments()
 {
     return(CommentModel.GetFeaturedCommentsForArticle(this));
 }
Example #3
0
        public static IEnumerable <CommentModel> FromArticle(ArticleModel article)
        {
            var comments = StoredProcs.Comments_GetComments(article.Id).Execute();

            return(comments.Select(c => CommentModel.FromTable(c)));
        }