public void AddBadge() { { Console.Clear(); List <string> DoorNames = new List <string>(); Console.Write("Please enter the badge number: "); int empNum = Convert.ToInt32(Console.ReadLine()); Console.Write("Please enter the door you want this badge to access: "); string doorNum = Console.ReadLine(); DoorNames.Add(doorNum); bool answer = true; while (answer) { Console.Write("Did you want to add another door?(y/n)"); string adminAnswer = Console.ReadLine().ToLower(); if (adminAnswer == "y") { Console.Write("Please enter the door you want this badge to access: "); string doorNum2 = Console.ReadLine(); DoorNames.Add(doorNum2); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); } else if (adminAnswer == "n") { answer = false; Console.WriteLine("Press any key to continue..."); Console.ReadKey(); } else { Console.WriteLine("Invalid Response"); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); } } //InsuranceItems content = new InsuranceItems(); Console.Clear(); _insuranceRepo.AddContentToDirectory(empNum, DoorNames); } }