Exemplo n.º 1
0
        /// <summary>
        /// News the category.
        /// </summary>
        /// <param name="category">The category.</param>
        /// <returns></returns>
        public int NewCategory(string description, int?parentCategoryID, string name, string slug)
        {
            var x = new XmlRpcCategoryNew
            {
                description = description,
                name        = name,
                parent_id   = parentCategoryID.Value,
                slug        = slug
            };

            return(_wrapper.NewCategory(this.BlogID, Username, Password, x));
        }
Exemplo n.º 2
0
 /// <summary>
 /// News the category.
 /// </summary>
 /// <param name="category">The category.</param>
 /// <returns></returns>
 public int NewCategory(string description, int? parentCategoryID, string name, string slug)
 {
     var x = new XmlRpcCategoryNew
         {
             description = description,
             name = name,
             parent_id = parentCategoryID.Value,
             slug = slug
         };
     return _wrapper.NewCategory(this.BlogID, Username, Password, x);
 }