static void DeleteStudent() { int id; string idTry; while (true) { Console.WriteLine("Please Enter Student ID: "); idTry = Console.ReadLine(); try { id = Int32.Parse(idTry); if (isb.DeleteStudentById(id)) { Console.WriteLine("Student " + id + " Delete Successful !"); } else { Console.WriteLine("Delete Error, Student ID Is Not Exists! "); } break; } catch (Exception e) { Console.WriteLine("Please Enter ID As Int type!"); continue; throw; } } }