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

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