Exemplo n.º 1
0
 public static ContactService InstantiateForDatabase(RequestContext c)
 {
     return(new ContactService(c,
                               AddressRepository.InstantiateForDatabase(c),
                               PriceGroupRepository.InstantiateForDatabase(c),
                               MailingListRepository.InstantiateForDatabase(c),
                               VendorRepository.InstantiateForDatabase(c),
                               ManufacturerRepository.InstantiateForDatabase(c),
                               AffiliateRepository.InstantiateForDatabase(c),
                               AffiliateReferralRepository.InstantiateForDatabase(c)));
 }
Exemplo n.º 2
0
 public ContactService(RequestContext c,
                       AddressRepository addresses,
                       PriceGroupRepository pricegroups,
                       MailingListRepository mailingLists,
                       VendorRepository vendors,
                       ManufacturerRepository manufacturers,
                       AffiliateRepository affiliates,
                       AffiliateReferralRepository affiliateReferrals)
 {
     context                 = c;
     Addresses               = addresses;
     PriceGroups             = pricegroups;
     this.MailingLists       = mailingLists;
     this.Vendors            = vendors;
     this.Manufacturers      = manufacturers;
     this.Affiliates         = affiliates;
     this.AffiliateReferrals = affiliateReferrals;
 }