static void WorkingClient() { //bool flag = true; //while (flag) //{ ClientMenu(); switch (MotorPool.EnterNumber(3, () => ClientMenu())) { case 1: manager.DeliveryInHire(); break; case 2: { if (client.Car.Id == 0) { Console.Clear(); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Before to go it is necessary to take the car in hire!"); Console.ForegroundColor = ConsoleColor.Gray; Console.ReadKey(); goto case 1; } client.Trip(); } break; case 3: { //flag = false; manager.ReturningInHire(); } break; //} } }