Exemple #1
0
        private void PerformRestroSpecificAction(IRestro restro)
        {
            while (true)
            {
                Console.WriteLine("\tEnter your choice :");
                Console.WriteLine("\t1. Admin");
                Console.WriteLine("\t2. Customer");
                Console.WriteLine("\t3. Change Restraunt");

                int choice = Convert.ToInt32(Console.ReadLine());

                switch (choice)
                {
                case 1:
                    restro.PerformRestroAction();
                    break;

                case 2:
                    restro.RegisterCustomer()
                    .PerformCustomerAction(restro);
                    break;

                case 3:
                    RestrauntChooser(restro);
                    break;
                }
            }
        }