Ejemplo n.º 1
0
 private void AddOwner()
 {
     try
     {
         int id = ReadInt("Please input owner id:");
         Console.WriteLine("Please input owner name:");
         string name = Console.ReadLine();
         manager.AddOwner(new Owner {
             Id = id, Name = name
         });
     }
     catch (Exception ex)
     {
         Console.WriteLine($"Error adding owner: {ex}");
     }
 }