예제 #1
0
 public ShoppingCartController(
     IShopingCartService cartService,
     ILogger <ShoppingCartController> logger)
 {
     this.cartService = cartService;
     this.logger      = logger;
 }
예제 #2
0
 public CheckoutController(IOrderService orderService, IShopingCartService shopingCartService)
 {
     this.orderService       = orderService;
     this.shopingCartService = shopingCartService;
     CreditCardTypes.Add("Amex");
     CreditCardTypes.Add("Visa");
     CreditCardTypes.Add("MasterCard");
 }
 public ShopingCartController(
     IShopingCartService cartService,
     UserManager <ApplicationUser> userManager,
     IProductsService productsService,
     ILogger <ShopingCartController> logger)
 {
     this.cartService     = cartService;
     this.userManager     = userManager;
     this.productsService = productsService;
     this.logger          = logger;
 }
 public ShoppingCartController(IShopingCartService shopingCartService, IProductService productService)
 {
     _shopingCartService = shopingCartService;
     _productService     = productService;
 }
 public ShoppingCartController(IShopingCartService service)
 {
     this.service = service;
 }
 public ShoppingCartController(IShopingCartService IShopingCartService)
 {
     _IShopingCartService = IShopingCartService;
 }