public OrderController(Models.IOrderRepository repoService, Models.Cart cartService, SendGrid.ISendGridClient sendGridClient, Braintree.IBraintreeGateway braintreeGateway, SmartyStreets.IClient <SmartyStreets.USStreetApi.Lookup> usStreetClient)
 {
     repository        = repoService;
     cart              = cartService;
     _sendGridClient   = sendGridClient;
     _braintreeGateway = braintreeGateway;
     _usStreetClient   = usStreetClient;
 }
Exemple #2
0
 public CheckoutController(ApplicationDbContext context, UserManager <HatUser> userManager
                           , IEmailSender emailSender, Braintree.IBraintreeGateway braintreeGateway)
 {
     this._context          = context;
     this._userManager      = userManager;
     this._emailSender      = emailSender;
     this._braintreeGateway = braintreeGateway;
 }