public static void AddOrUpdate() { if (!IsTrue.HasName(name)) { MyPhonebook[name] = string.Empty; } MyPhonebook[name] = number; }
private static void PrintMessage(string input) { if (IsTrue.HasName(input)) { OutputWriter.PrintNumber(input, MyPhonebook[input]); } else { OutputWriter.ContactDontExist(input); } }