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