public static TeacherDTO TeacherToDTO(teacher t) { return(new TeacherDTO() { teacherId = t.teacher_id, userId = t.userId, design_id = t.design_id, user = UserCasting.UserToDTO(t.user) }); }
public static StudentDTO StudentToDTO(student s) { return(new StudentDTO() { class_id = s.class_id, extra_time = s.extra_time, userId = s.user.user_id, studentId = s.student_id, user = UserCasting.UserToDTO(s.user) }); }