static void Main() { //TODO Need to Write Some Inpute and Business Roles Validation //TODO Need to Refactor for more Clean Code vehicleManager.CommandLineHelpInstruction(); while (true) { Console.WriteLine("Please Press Command"); int UserCommand; try { UserCommand = Convert.ToInt32(Console.ReadLine()); if (UserCommand == (int)Commandtype.Exit) { Console.WriteLine("You Press 4"); break; } else { vehicleManager.ExecuteCommand(UserCommand, ref vehicleManager, ref vehicles, ref TotalVisitor); } } catch (Exception ex) { Console.WriteLine(ex.Message); } } Console.WriteLine(); Console.ReadKey(); }