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 834B

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