public static bool Update(Student student) { try { StudentManager.Update(student); } catch (Exception) { return false; } return true; }
public static bool Update(Student student) { for (int i = 0; i < Students.Count; i++) { if (Students[i].Id != student.Id) continue; Students[i] = student; return true; } return false; }