public void Delete(Rarity element)
 {
     Rarity currentElement = this.FindOneById(element.id);
     if (currentElement != null)
     {
         dbTools.Delete(currentElement);
     }
 }
        // Delete an attribute
        public void Delete(ItemAttribute itemAttribute)
        {
            ItemAttribute currentAttribute = this.FindOneById(itemAttribute.id);

            if (currentAttribute != null)
            {
                dbTools.Delete(currentAttribute);
            }
        }
        public void Delete(ComponentType element)
        {
            ComponentType currentElement = this.FindOneById(element.id);

            if (currentElement != null)
            {
                dbTools.Delete(currentElement);
            }
        }