Example #1
0
 public Student UpdateStudent(string id, Student s)
 {
     Student p = objStudent.FirstOrDefault(e => e.ID.Equals(id));
     p.birthdate = s.birthdate;
     p.firstname = s.firstname;
     p.lastname = s.lastname;
     p.idbooster = s.idbooster;
     return p;
 }
Example #2
0
 public Student CreateStudent(Student s)
 {
     s.ID = (++studentCount).ToString();
     objStudent.Add(s);
     return s;
 }