private void sendToWordpress(Page page) { var post = PostBuilder.buildPostData(page.Title, page.Content); PostBuilder.addPost(post); }
private Page addStringToPage(Page page, string s) { page.Content += "<br>" + s; return page; }
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, }; }