示例#1
0
 public PostViewModel(PostDto post)
 {
     Post = post;
     CommentFormViewModel = new CommentFormViewModel {
         PostId = post.Id
     };
 }
示例#2
0
 public PostViewModel(PostDto post, CommentFormViewModel commentFormViewModel)
 {
     Post = post;
     CommentFormViewModel = commentFormViewModel;
 }