Exemplo n.º 1
0
 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)
     });
 }
Exemplo n.º 2
0
 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)
     });
 }