/// <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)); }
/// <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); }