예제 #1
0
 public static bool Update(Student student)
 {
     try
     {
         StudentManager.Update(student);
     }
     catch (Exception)
     {
         return false;
     }
     return true;
 }
예제 #2
0
 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;
 }