public bool CreateIndustrialSector(IndustrialSector sectorToCreate) { // Validation logic if (!ValidateIndustrialSector(sectorToCreate)) { return(false); } // Database logic try { _repository.Create(sectorToCreate); } catch { return(false); } return(true); }