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; }
public Student CreateStudent(Student s) { s.ID = (++studentCount).ToString(); objStudent.Add(s); return s; }