Пример #1
0
 public IBusinessPartnerDocumentRepository GetBusinessPartnerDocumentRepository()
 {
     if (businessPartnerDocumentRepository == null)
     {
         businessPartnerDocumentRepository = new BusinessPartnerDocumentViewRepository(context);
     }
     return(businessPartnerDocumentRepository);
 }
Пример #2
0
 /// <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;
 }