public void ProcessInput() { DisplayAll(); string action = ConsoleUtils.DisplayMenu(); while (action != "Completed") { switch (action) { case "List": DisplayAll(); break; case "Add": string[] newItem = ConsoleUtils.ItemUserInput(); repo.AddItem(newItem[0], newItem[1]); DisplayAll(); break; case "Delete": int itemID = ConsoleUtils.GetItemId(); repo.DeleteItem(itemID); DisplayAll(); break; case "Update": itemID = ConsoleUtils.GetItemId(); string[] updatedItem = ConsoleUtils.ItemUserInput(); repo.UpdateItem(itemID, updatedItem[0], updatedItem[1]); DisplayAll(); break; case "Pending": repo.GetPendingItems(); Console.WriteLine(); DisplayAll(); break; case "Completed": repo.GetCompletedItems(); Console.WriteLine(); DisplayAll(); break; case "Exit": DisplayAll(); Console.WriteLine("You have now quit the program."); break; default: Console.WriteLine("You have entered an invalid choice. Try again."); break; } action = ConsoleUtils.DisplayMenu(); } //action = ConsoleUtils.DisplayMenu(); }