private void CreateBlogPost(string blogId, string postId, string title) { BlogPost post = new BlogPost(); if (postId != null) post.Id = postId; post.Title = title; BlogPostEditingContext ctx = new BlogPostEditingContext(blogId, post); PostEditorFile file = PostEditorFile.CreateNew(tempDir); file.SaveBlogPost(ctx); }
public BlogPostEditingContext(string destinationBlogId, BlogPost blogPost, BlogPostExtensionDataList extensionDataList) : this(destinationBlogId, blogPost, PostEditorFile.CreateNew(PostEditorFile.DraftsFolder)) { _extensionDataList = extensionDataList; }
public BlogPostEditingContext(string destinationBlogId, BlogPost blogPost) : this(destinationBlogId, blogPost, PostEditorFile.CreateNew(PostEditorFile.DraftsFolder)) { }