コード例 #1
0
 public AdminController(IBookRepository bookRepo, IUserRepository userRepo,
                        IOrderProcessorDb purchaseRepo, IDeliveryDetailsRepository deliveryDetailsRepo)
 {
     bookRepository            = bookRepo;
     userRepository            = userRepo;
     purchaseRepository        = purchaseRepo;
     deliveryDetailsRepository = deliveryDetailsRepo;
 }
コード例 #2
0
 public CartController(IBookRepository bookRepo, IOrderProcessor proc,
                       IDeliveryDetailsRepository delDetRepo, IOrderProcessorDb procDB, IUserRepository userRepo)
 {
     bookRepository            = bookRepo;
     deliveryDetailsRepository = delDetRepo;
     orderProcessor            = proc;
     orderProcessorDB          = procDB;
     userRepository            = userRepo;
 }