//MusicStoreEntities storeDB = new MusicStoreEntities(); public ShoppingCartController(ICartRepository carts, IAlbumsRepository albums, ShoppingCartFactory shoppingCartFactory) { _carts = carts; _albums = albums; _shoppingCartFactory = shoppingCartFactory; }
public CheckoutController(ShoppingCartFactory shoppingCartFactory, IOrderRepository orderRepository, IUnitOfWork unitOfWork ) { _shoppingCartFactory = shoppingCartFactory; _orders = orderRepository; _unitOfWork = unitOfWork; }