Exemple #1
0
        public ProductController(
            IMapper mapper,
            ICategoryService categoryService,
            IProductService productService,
            ISupplierService supplierService,
            IPriceDetailsService priceDetailsService,
            IImageProductService imageProductService,
            IAdvertisementService advertisementService,
            ISubProductService subProductService,
            IOrderService orderService,
            IOrderSubProductService orderSubProductService,

            IAccountService accountService)
        {
            this.Mapper                 = mapper;
            this.SupplierService        = supplierService;
            this.PriceDetailsService    = priceDetailsService;
            this.ImageProductService    = imageProductService;
            this.CategoryService        = categoryService;
            this.ProductService         = productService;
            this.AdvertisementService   = advertisementService;
            this.SubProductService      = subProductService;
            this.OrderService           = orderService;
            this.OrderSubProductService = orderSubProductService;

            this.AccountService = accountService;
        }
Exemple #2
0
 public OrderController(IOrderService orderService,
                        IAdvertisementService advertisementService,
                        IOrderSubProductService orderSubProductService,
                        ISubProductService subProductService,
                        IPromotionService promotionService,
                        IMapper mapper,
                        IServiceProvider serviceProvider,
                        ICustomerService customerService)
 {
     this.Mapper                 = mapper;
     this.OrderService           = orderService;
     this.AdvertisementService   = advertisementService;
     this.OrderSubProductService = orderSubProductService;
     this.SubProductService      = subProductService;
     this.PromotionService       = promotionService;
     this._serviceProvider       = serviceProvider;
     this.CustomerService        = customerService;
 }