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);
            }
        }
Beispiel #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();
 }
Beispiel #4
0
 public ReplyCommentViewModel()
 {
     AddComment = new _AddCommentViewModel();
     Comment    = new _Comments_CommentViewModel();
 }