예제 #1
0
 public ProductController(IGenericsRepo <ProductType> productTypes, IGenericsRepo <ProductBrand> productBrand, IProductRepo productRepo, IMapper mapper)
 {
     _mapper       = mapper;
     _productBrand = productBrand;
     _productRepo  = productRepo;
     _productTypes = productTypes;
 }
예제 #2
0
 public BasketController(UserManager <User> userManager, IMapper mapper, IGenericsRepo <BasketItem> basketGenericRepo, IBasketRepo basketRepo, IProductRepo productRepo)
 {
     _mapper            = mapper;
     _userManager       = userManager;
     _basketRepo        = basketRepo;
     _productRepo       = productRepo;
     _basketGenericRepo = basketGenericRepo;
 }
예제 #3
0
 public OrderController(IGenericsRepo <Order> OrderGenericsRepo, IBasketRepo basketRepo, UserManager <User> userManager, IMapper mapper, IOrderRepo orderRepo, IGenericsRepo <Address> addressRepo)
 {
     _mapper            = mapper;
     _userManager       = userManager;
     _orderRepo         = orderRepo;
     _address           = addressRepo;
     _basketRepo        = basketRepo;
     _orderGenericsRepo = OrderGenericsRepo;
 }