コード例 #1
0
ファイル: Avatar.cs プロジェクト: crystalClearSky/MyAPI
        public IEnumerable <Comment> GetAllReplies()
        {
            ICommentData comments = new CommentData();

            _result = comments.GetRepliesById(this.Id);

            Sort();
            return(_result);
        }
コード例 #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);
        }