Ejemplo n.º 1
0
 public CartController(IProductRepository productRepository, ICartLineRepository cartLineRepository, ICartRepository cartRepository, EFDbContext context)
 {
     _productRepository  = productRepository;
     _cartLineRepository = cartLineRepository;
     _cartRepository     = cartRepository;
     _context            = context;
 }
        public ChartHelpersController(EFDbContext context, IProductRepository productRepository, ICartLineRepository cartLineRepository, ICartRepository cartRepository)
        {
            _context            = context;
            _productRepository  = productRepository;
            _cartLineRepository = cartLineRepository;
            _cartRepository     = cartRepository;
            UserStore <Customer> customerStore = new UserStore <Customer>(_context);

            _customerManager = new UserManager <Customer>(customerStore);
        }
Ejemplo n.º 3
0
 public CartController(ICartLineRepository cartLineRepo,
                       IProductRepository productRepo,
                       IUserService userServ,
                       IMapper mapper)
 {
     _cartLineRepo = cartLineRepo;
     _productRepo  = productRepo;
     _userServ     = userServ;
     _mapper       = mapper;
 }
Ejemplo n.º 4
0
 public OrderController(IOrderLineRepository orderLineRepo,
                        IOrderRepository orderRepo,
                        ICartLineRepository cartLineRepo,
                        IUserRepository userRepo,
                        IUserService userServ,
                        IMapper mapper)
 {
     _orderLineRepo = orderLineRepo;
     _cartLineRepo  = cartLineRepo;
     _orderRepo     = orderRepo;
     _userRepo      = userRepo;
     _userServ      = userServ;
     _mapper        = mapper;
 }