コード例 #1
0
 public CourseAssistantDTO MapCourseAssistant(CourseAssistant courseAssistant)
 {
     return(new CourseAssistantDTO {
         CourseId = courseAssistant.CourseId,
         Assistant = MapAssistant(courseAssistant)
     });
 }
コード例 #2
0
 private UserDTO MapAssistant(CourseAssistant assistant)
 {
     return(new UserDTO {
         Id = assistant.AssistantId,
         FirstName = assistant.Assistant.FirstName,
         LastName = assistant.Assistant.LastName
     });
 }