Пример #1
0
        // GET: B2B

        public B2BController(IAuthenticationService authenticationService, ICustomerApi customerRepository, IB2BApi b2bRepository, IOrderApi orderRepository)
        {
            _authenticationService = authenticationService;
            _customerRepository    = customerRepository;
            _b2bRepository         = b2bRepository;
            _orderRepository       = orderRepository;
        }
        // private readonly IPaymentMethod _paymentMethod;

        public CheckoutController(ICustomerApi customerApi, IConfigApi configApi,
                                  IPaymentApi paymentApi, ICheckoutApi checkoutApi, IOrderApi orderApi, IShippingApi shippingApi, IAuthenticationService authenticationService, ICustomerApi customerRepository, IB2BApi b2bRepository)
        {
            _customerApi           = customerApi;
            _configApi             = configApi;
            _paymentApi            = paymentApi;
            _checkoutApi           = checkoutApi;
            _orderApi              = orderApi;
            _shippingApi           = shippingApi;
            _authenticationService = authenticationService;
            _customerRepository    = customerRepository;
            _b2bRepository         = b2bRepository;
        }