Пример #1
0
        public ActionResult Details(int id)
        {
            Post post = dataModel.GetPostDetailByID(id);

            Temp temp = new Temp()
            {
                PostID       = post.ID,
                PostName     = post.Name,
                PostTime     = post.Time,
                PostDetails  = post.Detail,
                CommentsList = commentsModel.GetCommentsByID(id)
            };

            return(View(temp));
        }