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); }
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 ); }