public static void AddProductToCart(int userInput, int qty) { ProductsList productsList = HandleJsonData.GetProducts(); List <Product> products = productsList.ProductList; ShoppingCartItem cartItem = new ShoppingCartItem(products[userInput - 1], qty); ShoppingCart.AddToCart(cartItem); }
internal static void InitApp() { ShoppingCart.InitCart(); WriteToConsole.WriteProducts(HandleJsonData.GetProducts()); WriteToConsole.GetUserProduct(); }