public static bool Delete(Int32 categoryId, Int32 parentId)
        {
            CategoryParent categoryParent = new CategoryParent();

            if (categoryParent.Load(categoryId, parentId))
            {
                return(categoryParent.Delete());
            }
            return(false);
        }
 public static bool Delete(CategoryParent categoryParent)
 {
     return(categoryParent.Delete());
 }