public PostPage GetPost(string param)
        {
            var post = new Data().GetPost(param);

            if (post != null)
            {
                var postPage = new PostPage();

                postPage.PostId = post.Id;
                postPage.CategoryID = post.CategoryId;
                postPage.CategoryName = new CategoryController().GetCachedCategory(post.CategoryId, false).LinkName;
                postPage.PostName = post.Name;
                postPage.Name = post.Name;
                postPage.MetaDescription = post.MetaDescription;
                postPage.MetaKeywords = post.MetaKeywords;

                return postPage;
            }

            return null;
        }
        public PostPage GetPost(string param)
        {
            var post = new Data().GetPost(param);

            if (post != null)
            {
                var postPage = new PostPage();

                postPage.PostId          = post.Id;
                postPage.CategoryID      = post.CategoryId;
                postPage.CategoryName    = new CategoryController().GetCachedCategory(post.CategoryId, false).LinkName;
                postPage.PostName        = post.Name;
                postPage.Name            = post.Name;
                postPage.MetaDescription = post.MetaDescription;
                postPage.MetaKeywords    = post.MetaKeywords;

                return(postPage);
            }

            return(null);
        }