Esempio n. 1
0
        public static void ShowOrderByNo(ref RestaurantManager restaurantManager)
        {
            Console.WriteLine("Enter the number:");
            string noStr = Console.ReadLine();
            int    no;

            while (!int.TryParse(noStr, out no) || no < 0)
            {
                Console.WriteLine("Error! Enter the price correctly!");
                noStr = Console.ReadLine();
            }


            restaurantManager.GetOrderByNo(no);
        }