Exemplo n.º 1
0
 public CourseAssistantDTO MapCourseAssistant(CourseAssistant courseAssistant)
 {
     return(new CourseAssistantDTO {
         CourseId = courseAssistant.CourseId,
         Assistant = MapAssistant(courseAssistant)
     });
 }
Exemplo n.º 2
0
 private UserDTO MapAssistant(CourseAssistant assistant)
 {
     return(new UserDTO {
         Id = assistant.AssistantId,
         FirstName = assistant.Assistant.FirstName,
         LastName = assistant.Assistant.LastName
     });
 }