You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ApplicantMappingProfile.cs 804B

123456789101112131415161718192021222324
  1. using Diligent.WebAPI.Contracts.DTOs.Applicant;
  2. namespace Diligent.WebAPI.Business.MappingProfiles
  3. {
  4. public class ApplicantMappingProfile:Profile
  5. {
  6. public ApplicantMappingProfile()
  7. {
  8. #region Models to DTOs
  9. CreateMap<Applicant, ApplicantViewDto>();
  10. CreateMap<Applicant, AdApplicantViewDto>();
  11. CreateMap<Applicant, ApplicantScheduleViewDto>();
  12. CreateMap<Applicant, PatternApplicantViewDto>();
  13. CreateMap<Applicant, ApplicantOptionsDTO>();
  14. #endregion
  15. #region DTOs to Models
  16. CreateMap<ApplicantCreateDto, Applicant>();
  17. CreateMap<ApplicantImportDto, Applicant>();
  18. CreateMap<ApplicantUpdateDto, Applicant>();
  19. #endregion
  20. }
  21. }
  22. }