Exemple #1
0
        /// <summary>
        /// Posts a new entry to a blog.
        /// </summary>
        /// <param name="post">The Post.</param>
        /// <param name="publish">If false, this is a draft post.</param>
        /// <returns>The postid of the newly-created post.</returns>
        public virtual string NewPost(Post post, bool publish)
        {
            var content = Map.From.Post(post);

            OnAfterPostMapping(post, content);
            return(_wrapper.NewPost(BlogID, Username, Password, content, publish));
        }
        /// <summary>
        /// Posts a new entry to a blog.
        /// </summary>
        /// <param name="post">The Post.</param>
        /// <param name="publish">If false, this is a draft post.</param>
        /// <returns>The postid of the newly-created post.</returns>
        public virtual int NewPost(Post post, bool publish)
        {
            var content = Map.From.Post(post);

            return(Convert.ToInt16(_wrapper.NewPost(this.BlogID, Username, Password, content, publish)));
        }