Пример #1
0
 public ShopCartController(IProductService productService, IOrderProcessorService orderService,
                           ISalesTerritoryService salesService, IShopCartItemService shopCartItemService, ICustomerAddressService addressService)
 {
     this.productService      = productService;
     this.orderService        = orderService;
     this.salesService        = salesService;
     this.shopCartItemService = shopCartItemService;
     this.addressService      = addressService;
 }
Пример #2
0
 public ProductController(IProductCatalogService dataRepository, IProductPhotoService photoRepository,
                          IShopCartItemService shopCartItemService)
 {
     this.dataRepository  = dataRepository;
     this.photoRepository = photoRepository;
 }