Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ApplicantMappingProfile.cs 691B

12345678910111213141516171819202122
  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. #endregion
  14. #region DTOs to Models
  15. CreateMap<ApplicantCreateDto, Applicant>();
  16. CreateMap<ApplicantUpdateDto, Applicant>();
  17. #endregion
  18. }
  19. }
  20. }