/// <summary>
        /// Saves this image to the database. Either inserts it, or updates it.
        /// </summary>
        /// <returns></returns>
        public bool SaveToDatabase()
        {
            ContactDataCategoryDb db = new ContactDataCategoryDb();

            if (categoryId < 0)
            {
                return(db.Insert(this));
            }
            else
            {
                return(db.Update(this));
            }
        } // SaveToDatabase
        } // getAllContactCategories

        public static ContactDataCategory[] getContactCategories(int[] categoryIds)
        {
            ContactDataCategoryDb db = new ContactDataCategoryDb();

            return(db.getContactCategories(categoryIds));
        } // getContactCategories
        } // getContactCategory

        public static ContactDataCategory[] getAllContactCategories()
        {
            ContactDataCategoryDb db = new ContactDataCategoryDb();

            return(db.getAllContactCategories());
        } // getAllContactCategories
        } // Delete

        public static ContactDataCategory getContactCategory(int categoryId)
        {
            ContactDataCategoryDb db = new ContactDataCategoryDb();

            return(db.getCategory(categoryId));
        } // getContactCategory
        } // SaveToDatabase

        public bool Delete()
        {
            ContactDataCategoryDb db = new ContactDataCategoryDb();

            return(db.Delete(this));
        } // Delete