public ShoppingCartController(
     IShoppingCartService shoppingCartService,
     IShoppingCartProductsService shoppingCartProductsService,
     UserManager <ApplicationUser> userManager)
 {
     this.shoppingCartService         = shoppingCartService;
     this.shoppingCartProductsService = shoppingCartProductsService;
     this.userManager = userManager;
 }
Exemplo n.º 2
0
 public OrdersController(
     UserManager <ApplicationUser> userManager,
     IOrderService orderService,
     IShoppingCartService shoppingCartService,
     IPromoCodeService promoCodeService,
     IShoppingCartProductsService shoppingCartProductsService)
 {
     this.userManager                 = userManager;
     this.orderService                = orderService;
     this.shoppingCartService         = shoppingCartService;
     this.promoCodeService            = promoCodeService;
     this.shoppingCartProductsService = shoppingCartProductsService;
 }
Exemplo n.º 3
0
 public OrderService(
     IDeletableEntityRepository <Order> orderRepository,
     IUserService userService,
     IShoppingCartProductsService shoppingCartProductsService,
     IOrderProductsService orderProductsService,
     IPromoCodeService promoCodeService)
 {
     this.orderRepository             = orderRepository;
     this.userService                 = userService;
     this.shoppingCartProductsService = shoppingCartProductsService;
     this.orderProductsService        = orderProductsService;
     this.promoCodeService            = promoCodeService;
 }
Exemplo n.º 4
0
 public ProductsController(
     IProductService productService,
     IFavouriteProductsService favouriteProductsService,
     IShoppingCartProductsService shoppingCartProductsService,
     IShoppingCartService shoppingCartService,
     UserManager <ApplicationUser> userManager
     )
 {
     this.productService              = productService;
     this.favouriteProductsService    = favouriteProductsService;
     this.shoppingCartProductsService = shoppingCartProductsService;
     this.shoppingCartService         = shoppingCartService;
     this.userManager = userManager;
 }