Beispiel #1
0
        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);
        }
Beispiel #2
0
        //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;
        }