コード例 #1
0
ファイル: OrderController.cs プロジェクト: obble80/Asiana
 public OrderController(IOrderService orderService, IShippingService shippingService, IPayPalService payPalService, Fashinon dbContext)
 {
     this.orderService = orderService;
     this.shippingService = shippingService;
     this.payPalService = payPalService;
     this.dbContext = dbContext;
 }
コード例 #2
0
ファイル: CustomerService.cs プロジェクト: obble80/Asiana
        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;
        }
コード例 #3
0
ファイル: PayPalController.cs プロジェクト: obble80/Asiana
 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;
 }
コード例 #4
0
ファイル: BasketService.cs プロジェクト: obble80/Asiana
 public BasketService(Fashinon dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #5
0
ファイル: ProductService.cs プロジェクト: obble80/Asiana
 public ProductService(Fashinon dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #6
0
ファイル: OrderService.cs プロジェクト: obble80/Asiana
 public OrderService(Fashinon dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #7
0
ファイル: ShippingService.cs プロジェクト: obble80/Asiana
 public ShippingService(Fashinon dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #8
0
ファイル: CustomerService.cs プロジェクト: obble80/Asiana
 public CustomerService(Fashinon dbContext)
 {
     this.dbContext = dbContext;
 }