Example #1
0
 private void sendToWordpress(Page page)
 {
     var post = PostBuilder.buildPostData(page.Title, page.Content);
     PostBuilder.addPost(post);
 }
Example #2
0
 private Page addStringToPage(Page page, string s)
 {
     page.Content += "<br>" + s;
     return page;
 }
Example #3
0
        private TermPage BuildPagePerSuggestTerm(string suggest)
        {
            var page = new Page
            {
                Content = TemplateReader.GetArtical(suggest),
                Title = TitlesReader.GetArtical(suggest)
            };

            var post = PostBuilder.buildPostData(page.Title, page.Content);
            var wordpressPageId = PostBuilder.addPage(post);

            return new TermPage
            {
                PageId = wordpressPageId,
                Term = suggest,
            };
        }