1234567891011121314151617181920212223 |
- using AutoMapper;
- using WingInterfaceLibrary.DTO.Courses;
- using WingInterfaceLibrary.DTO.Education;
- using WingInterfaceLibrary.Request.Courses;
- namespace WingEducationService
- {
- public class AutoMapperProfile : Profile
- {
- public AutoMapperProfile()
- {
- CreateMap<BaseCourseInfoDTO, CoursePageDTO>().ReverseMap();
- CreateMap<BaseCourseInfoDTO, StudentInCoursePageDTO>().ReverseMap();
- CreateMap<CourseExaminationDTO, BaseCourseExaminationDTO>().ReverseMap();
- CreateMap<StudentExaminationDetailDTO, StudentExaminationDTO>().ReverseMap();
- CreateMap<TeacherSetExaminationAnswerDTO, ExaminationAnswerDTO>().ReverseMap();
- CreateMap<StudentSetExaminationAnswerDTO, ExaminationAnswerDTO>().ReverseMap();
- CreateMap<BaseStudentExaminationDTO, StudentExaminationDTO>().ReverseMap();
- CreateMap<CourseBrowsedRecordDTO, CourseBrowsedRecordRequest>().ReverseMap();
- CreateMap<CourseBrowsedRecordRequest, CourseBrowsedRecordDTO>().ReverseMap();
- }
- }
- }
|