public AdminController(IBookRepository bookRepo, IUserRepository userRepo, IOrderProcessorDb purchaseRepo, IDeliveryDetailsRepository deliveryDetailsRepo) { bookRepository = bookRepo; userRepository = userRepo; purchaseRepository = purchaseRepo; deliveryDetailsRepository = deliveryDetailsRepo; }
public CartController(IBookRepository bookRepo, IOrderProcessor proc, IDeliveryDetailsRepository delDetRepo, IOrderProcessorDb procDB, IUserRepository userRepo) { bookRepository = bookRepo; deliveryDetailsRepository = delDetRepo; orderProcessor = proc; orderProcessorDB = procDB; userRepository = userRepo; }