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