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(); }