public PostViewModel(PostDto post) { Post = post; CommentFormViewModel = new CommentFormViewModel { PostId = post.Id }; }
public PostViewModel(PostDto post, CommentFormViewModel commentFormViewModel) { Post = post; CommentFormViewModel = commentFormViewModel; }