public static int ParseQuantity()
        {
            CartItem product = new CartItem();
            bool     parsed  = int.TryParse(Console.ReadLine(), out int quantity);

            product.Quantity = quantity;

            if (parsed == true)
            {
                if (product.Quantity <= 0)
                {
                    Console.WriteLine($"{product.Quantity}: is not a valid quantity.");
                    ConsoleLogging.GetQuantity(product);
                }
                return(product.Quantity);
            }
            ConsoleLogging.GetQuantity(product);
            return(product.Quantity);
        }
 public static void CreateProduct(CartItem product)
 {
     ConsoleLogging.GetName(product);
     ConsoleLogging.GetQuantity(product);
     ConsoleLogging.GetPrice(product);
 }