Exemplo n.º 1
0
        public void EditComment(AnswersComment comment)
        {
            var book = AnswersComment.Where(b => b.CommentID == comment.CommentID).FirstOrDefault();

            if (book == null)
            {
                AnswersComment.Add(comment);
                AnswersDetails.CommentDisplay = (answers.CommentCounts + 1).ToString();
            }
            else
            {
                var index = AnswersComment.IndexOf(book);
                AnswersComment[index] = comment;
            }
            if (LoadStatus == LoadMoreStatus.StausNodata)
            {
                LoadStatus = LoadMoreStatus.StausEnd;
            }
        }