public static void AllEmployeesMenu() { int?allEmployeesMenuChoice = MenuUtils.GetIntChoice(MenuUtils.AllEmployeesMenu(), 1, 3); switch (allEmployeesMenuChoice) { case 1: using (var db = new EmployeeContext()) { foreach (var item in db.employees) { Console.WriteLine("Lastname : {0}, Firstname : {1}, Function : {2}.", item.LastName, item.FirstName, item.Function); } } break; case 2: Payroll(); break; case 3: Menu.EmployeesMenu(); break; default: Menu.AllEmployeesMenu(); break; } }