Exemplo n.º 1
0
        public IEnumerable <Comment> GetAllReplies()
        {
            ICommentData comments = new CommentData();

            _result = comments.GetRepliesById(this.Id);

            Sort();
            return(_result);
        }
Exemplo n.º 2
0
        public IList <Comment> GetRepliesForThisComment()
        {
            ICommentData commentData = new CommentData();
            var          comments    = new List <Comment>();
            var          reply       = commentData.GetRepliesById(this.Id);

            comments = comments.Concat(reply).ToList();

            return(comments);
        }