CourseMapper.cs 334 B

1234567891011
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. public class CourseMapper : IRegister
  4. {
  5. public void Register(TypeAdapterConfig config)
  6. {
  7. config.ForType<Course, NceeCourseDto>().Map(d => d.Sequence, s => (s.Id == 8 || s.Id == 100 || s.Id == 101) ? (s.Id == 8 ? 4 : (s.Id == 100 ? 101 : 100)) : s.Id);
  8. }
  9. }