public ReplyCommentViewModel(Comment parentComment)
        {
            if (parentComment != null)
            {
                ContentTitle = parentComment.Content.Title;

                AuthorId = parentComment.Content.AuthorId;
                GroupId = parentComment.Content.GroupId;

                AddComment = new _AddCommentViewModel { ParentCommentId = parentComment.Id, ReturnUrl = parentComment.Content.GetUrl() };

                Comment = new _Comments_CommentViewModel(parentComment);
            }
        }
Exemple #2
0
        public ReplyCommentViewModel(Comment parentComment)
        {
            if (parentComment != null)
            {
                ContentTitle = parentComment.Content.Title;

                AuthorId = parentComment.Content.AuthorId;
                GroupId  = parentComment.Content.GroupId;

                AddComment = new _AddCommentViewModel {
                    ParentCommentId = parentComment.Id, ReturnUrl = parentComment.Content.GetUrl()
                };

                Comment = new _Comments_CommentViewModel(parentComment);
            }
        }
 public ReplyCommentViewModel()
 {
     AddComment = new _AddCommentViewModel();
     Comment = new _Comments_CommentViewModel();
 }
Exemple #4
0
 public ReplyCommentViewModel()
 {
     AddComment = new _AddCommentViewModel();
     Comment    = new _Comments_CommentViewModel();
 }