示例#1
0
 public static Student getStudentFromData(StudentData sData)
 {
     Student s = new Student();
     s.PhoneNumber = sData.PhoneNumber;
     s.FirstName = sData.FirstName;
     s.LastName = sData.LastName;
     s.Email = sData.Email;
     s.RoomId = sData.RoomId;
     return s;
 }
示例#2
0
 public static StudentData getStudentAsData(Student s)
 {
     StudentData sData = new StudentData();
     sData.PhoneNumber = s.PhoneNumber;
     sData.FirstName = s.FirstName;
     sData.LastName = s.LastName;
     sData.Email = s.Email;
     sData.RoomId = s.RoomId;
     return sData;
 }