protected override void Dispose(bool disposing) { if (disposing) { if (businessTypeRepository != null) { businessTypeRepository.Dispose(); } if (documentationBusinessTypeRepository != null) { documentationBusinessTypeRepository.Dispose(); documentationBusinessTypeRepository = null; } if (documentationRepository != null) { documentationRepository.Dispose(); documentationRepository = null; } if (documentationPeriodicityRepository != null) { documentationPeriodicityRepository.Dispose(); documentationPeriodicityRepository = null; } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { if (contractorRepository != null) { contractorRepository.Dispose(); contractorRepository = null; } if (localizationRepository != null) { localizationRepository.Dispose(); localizationRepository = null; } if (businessTypeRepository != null) { businessTypeRepository.Dispose(); businessTypeRepository = null; } if (employeeRepository != null) { employeeRepository.Dispose(); employeeRepository = null; } if (vehicleRepository != null) { vehicleRepository.Dispose(); vehicleRepository = null; } if (employeeRelationshipTypeRepository != null) { employeeRelationshipTypeRepository.Dispose(); employeeRelationshipTypeRepository = null; } if (userManager != null) { userManager.Dispose(); userManager = null; } if (workflowMessageService != null) { workflowMessageService.Dispose(); workflowMessageService = null; } } base.Dispose(disposing); }