public OrderController(IOrderService orderService, IShippingService shippingService, IPayPalService payPalService, Fashinon dbContext) { this.orderService = orderService; this.shippingService = shippingService; this.payPalService = payPalService; this.dbContext = dbContext; }
public Customer GetAnonymousCustomer() { var context = new Fashinon(); var customer = new Customer(); customer.FirstName = "Anonymous"; customer.LastName = "Anonymous"; context.Customers.Add(customer); context.SaveChanges(); return customer; }
public PayPalController( ILogService logService, IBasketService basketService, IPayPalService payPalService, IShippingService shippingService, IOrderService orderService, ICustomerService customerService, Fashinon dbContext) { this.logService = logService; this.basketService = basketService; this.payPalService = payPalService; this.shippingService = shippingService; this.orderService = orderService; this.customerService = customerService; this.dbContext = dbContext; }
public BasketService(Fashinon dbContext) { this.dbContext = dbContext; }
public ProductService(Fashinon dbContext) { this.dbContext = dbContext; }
public OrderService(Fashinon dbContext) { this.dbContext = dbContext; }
public ShippingService(Fashinon dbContext) { this.dbContext = dbContext; }
public CustomerService(Fashinon dbContext) { this.dbContext = dbContext; }