Esempio n. 1
0
        public void Show(int id)
        {
            ForumPost post = ForumPost.findById(id);

            PostDetailVo x = new PostDetailVo {
                Id      = id,
                Title   = post.Title,
                User    = post.Creator.Name,
                Created = post.Created,
                Content = strUtil.ParseHtml(post.Content)
            };

            echoJson(x);
        }
Esempio n. 2
0
        public void Show( int id )
        {
            ForumPost post = ForumPost.findById( id );

            PostDetailVo x = new PostDetailVo {
                Id = id,
                Title = post.Title,
                User = post.Creator.Name,
                Created = post.Created,
                Content = strUtil.ParseHtml( post.Content )
            };

            echoJson( x );
        }