Ejemplo n.º 1
0
 public void CommandCreate()
 {
     Console.WriteLine();
     Console.WriteLine("==============================");
     Console.WriteLine("====== Record creating =======");
     Console.WriteLine("==============================");
     Console.WriteLine();
     Console.WriteLine("You will need to enter information about record");
     Console.WriteLine();
     if (console.ReadYesOrNo("Do you want to continue?"))
     {
         Console.WriteLine();
         Record record = console.ReadRecord();
         recordManager.AddRecord(record);
         Console.WriteLine($"Record created (id = {record.Id})");
     }
     else
     {
         Console.WriteLine("Operation canceled");
     }
 }