public string GetId(List <Student> students) { var interFace = new InterfaceOfUser(); string checkId; string ID; Console.Write("ID is: "); do { ID = Console.ReadLine(); checkId = interFace.CheckEnterId(ID, students); } while (checkId != ID); return(ID); }