示例#1
0
        public bool EditIndustrialSector(IndustrialSector sectorToEdit)
        {
            // Validation logic
            if (!ValidateIndustrialSector(sectorToEdit))
            {
                return(false);
            }

            // Database logic
            try
            {
                _repository.Update(sectorToEdit);
            }
            catch
            {
                return(false);
            }
            return(true);
        }