static void Main(string[] args) { ConsoleLogging.IntroText(); PhoneBook.ContactList = FileMaster.ReadFile(); if (PhoneBook.ContactList.Count == 0) { ConsoleLogging.FirstTimeText(); PhoneBook.CreateContact(0); } Execute(); }
internal static int GetContactToUpdate() { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine("Which contact do you want to update? Please select based on the id. Press 0 if you " + "want to go back to the main menu."); Console.WriteLine(); Console.ResetColor(); PhoneBook.GetAllContacts(); int id; id = GetIdSafely(); return(id); }