Ejemplo n.º 1
0
        public bool Update(DBObject.AttributeChoice attributeChoice)
        {
            bool success = true;

            try
            {
                _iAttributeChoiceTable.Update(attributeChoice);
            }
            catch
            {
                success = false;
            }

            return(success);
        }
Ejemplo n.º 2
0
        public bool Delete(DBObject.AttributeChoice attributeChoice)
        {
            bool success = true;

            try
            {
                _iSpeciesAttributeChoiceTable.DeleteByAttributeChoice(attributeChoice.id);
                _iAttributeChoiceTable.Delete(attributeChoice);
            }
            catch
            {
                success = false;
            }

            return(success);
        }