//Delete badge private void RemoveBadgeFromDict() { ViewAllBadges(); Dictionary <int, BadgeInfo> listOfBadges = _repo.ViewAllBadges(); if (listOfBadges.Count != 0) { //Get the badge to remove Console.WriteLine("Enter the Badge ID you would like to delete"); int badgeId = int.Parse(Console.ReadLine()); //Call the delete method bool wasDeleted = _repo.DeleteBadgeFromDict(badgeId); if (wasDeleted) { Console.WriteLine("The badge was successfully deleted"); Console.ReadKey(); Console.Clear(); } } }