// Function that adds a book to the database through the repository layer public void AddItem(string userId, int bookId) { _cartRepo.AddItem(userId, bookId); }