예제 #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;
 }