public IBusinessPartnerDocumentRepository GetBusinessPartnerDocumentRepository() { if (businessPartnerDocumentRepository == null) { businessPartnerDocumentRepository = new BusinessPartnerDocumentViewRepository(context); } return(businessPartnerDocumentRepository); }
/// <summary> /// Document Constructor /// </summary> public DocumentService(IDocumentRepository documentRepository, IDocumentGroupRepository documentGroupRepository, IBusinessPartnerDocumentRepository businessPartnerDocumentRepository, IRACustomerDocumentRepository raCustomerDocumentRepository) { this.documentRepository = documentRepository; this.documentGroupRepository = documentGroupRepository; this.businessPartnerDocumentRepository = businessPartnerDocumentRepository; this.raCustomerDocumentRepository = raCustomerDocumentRepository; }