/// <summary> /// Create new contract /// </summary> static void CreateContract() { Console.Write("Choose your Nanny's ID: "); int id1 = int.Parse(Console.ReadLine()); Console.Write("Choose your child's ID: "); int id2 = int.Parse(Console.ReadLine()); Contract c = new Contract(id1, id2); try { bl.AddContract(c); // print the contract Console.WriteLine("\nYour new Contract"); Console.WriteLine(c); Console.WriteLine("============================================="); } catch (Exception e) { Console.WriteLine("\n**********************************************************"); Console.WriteLine(e.Message); Console.WriteLine("**********************************************************\n"); } }