示例#1
0
        public IActionResult PostDetails(int id)
        {
            ForumPost post = new ForumPost();

            post          = forumDAO.GetPostById(id);
            post.Comments = forumDAO.GetAllCommentsByPost(post);
            return(View(post));
        }