public void AskEmployeePUID() { Console.Write(">>Enter PUID to fetch his/her details : "); AskAgain: string PUID = Console.ReadLine().Trim(); var Employee = (Employee)employeeValidator.ValidateToRead(PUID); if (Employee == null) { Console.ForegroundColor = ConsoleColor.Red; Console.Write("WARNING : "); Console.ForegroundColor = ConsoleColor.White; Console.Write("Please provide valid PUID : "); goto AskAgain; } else { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine("Employee profile"); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine($"Name : {Employee.FullName}"); Console.WriteLine($"PUID : {Employee.PUID}"); Console.WriteLine($"e-Mail : {Employee.EmailID}\nUnder Application : "); foreach (Project application in Employee.Projects) { Console.WriteLine($" {application.ProjectName}"); } } }