コード例 #1
0
        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));
        }
コード例 #2
0
        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);
        }