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

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