public ActionResult DisplayPublishedPost(Guid postId) { var view = new PublishedPostWithCommentsView(MvcApplication.MongoDatabase); var publishedPostWithComments = view.Find(postId); var model = new DisplayPublishedPostViewModel { Post = publishedPostWithComments }; return(View(model)); }
public ActionResult DisplayPublishedPost(Guid postId) { var view = new PublishedPostWithCommentsView(MvcApplication.MongoDatabase); var publishedPostWithComments = view.Find(postId); var model = new DisplayPublishedPostViewModel { Post = publishedPostWithComments }; return View(model); }