Пример #1
0
        public static void Shop()
        {
            Console.Clear();
            Console.WriteLine("Please Enter which you would like to buy:");
            Console.WriteLine("[BREAD] [PASTRY]");
            string productChoice = Console.ReadLine();

            if (productChoice.ToLower() == "bread")
            {
                Console.WriteLine("Please enter the number of loaves you would like:");
                int breadCount = int.Parse(Console.ReadLine());
                Console.WriteLine("You have ordered " + breadCount + " loaves!");
                Bread.BreadPricing(breadCount);
                ReturnMenu();
            }
            else if (productChoice.ToLower() == "pastry")
            {
                Console.WriteLine("Please enter the number of pastries you would like:");
                int pastryCount = int.Parse(Console.ReadLine());
                Console.WriteLine("You have ordered " + pastryCount + " pastries!");
                Pastry.PastryPricing(pastryCount);
                ReturnMenu();
            }
            else
            {
                Shop();
            }
        }