protected override void Dispose(bool disposing) { if (disposing) { if (businessTypeTemplateRepository != null) { businessTypeTemplateRepository.Dispose(); businessTypeTemplateRepository = null; } if (documentationBusinessTypeTemplateRepository != null) { documentationBusinessTypeTemplateRepository.Dispose(); documentationBusinessTypeTemplateRepository = null; } if (documentationTemplateRepository != null) { documentationTemplateRepository.Dispose(); documentationTemplateRepository = null; } if (documentationPeriodicityRepository != null) { documentationPeriodicityRepository.Dispose(); documentationPeriodicityRepository = null; } } base.Dispose(disposing); }
public BusinessTypesController( IBusinessTypeRepository businessTypeRepo, IDocumentationBusinessTypeRepository documentationBusinessTypeRepo, IDocumentationRepository documentationRepo, IDocumentationPeriodicityRepository documentationPeriodicityRepo) { businessTypeRepository = businessTypeRepo; documentationBusinessTypeRepository = documentationBusinessTypeRepo; documentationRepository = documentationRepo; documentationPeriodicityRepository = documentationPeriodicityRepo; }
//private IRepository<DocumentationImportance> documentationImportanceRepository; public BusinessTypeTemplatesController( IBusinessTypeTemplateRepository businessTypeTemplateRepo, IDocumentationBusinessTypeTemplateRepository documentationBusinessTypeTemplateRepo, IDocumentationTemplateRepository documentationTemplateRepo, //IDocumentationImportanceRepository documentationImportanceRepo, IDocumentationPeriodicityRepository documentationPeriodicityRepo) { businessTypeTemplateRepository = businessTypeTemplateRepo; documentationBusinessTypeTemplateRepository = documentationBusinessTypeTemplateRepo; documentationTemplateRepository = documentationTemplateRepo; //documentationImportanceRepository = documentationImportanceRepo; documentationPeriodicityRepository = documentationPeriodicityRepo; }