public void Dispose() { if (QuotationRepository != null) { QuotationRepository.Dispose(); QuotationRepository = null; } if (QuotationPriceRepository != null) { QuotationPriceRepository.Dispose(); QuotationPriceRepository = null; } }
public void Dispose() { if (AgencyRepository != null) { AgencyRepository.Dispose(); AgencyRepository = null; } if (AgencyContractRepository != null) { AgencyContractRepository.Dispose(); AgencyContractRepository = null; } if (ContractRepository != null) { ContractRepository.Dispose(); ContractRepository = null; } if (QuotationRepository != null) { QuotationRepository.Dispose(); QuotationRepository = null; } if (AgencyContactRepository != null) { AgencyContactRepository.Dispose(); AgencyContactRepository = null; } if (CruiseRepository != null) { CruiseRepository.Dispose(); CruiseRepository = null; } if (ActivityRepository != null) { ActivityRepository.Dispose(); ActivityRepository = null; } if (AgencyNotesRepository != null) { AgencyNotesRepository.Dispose(); AgencyNotesRepository = null; } if (RoleRepository != null) { RoleRepository.Dispose(); RoleRepository = null; } }