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.

AdMappingProfile.cs 511B

1234567891011121314151617181920
  1. namespace Diligent.WebAPI.Business.MappingProfiles
  2. {
  3. public class AdMappingProfile : Profile
  4. {
  5. public AdMappingProfile()
  6. {
  7. #region DTO to Model
  8. CreateMap<AdCreateDto, Ad>();
  9. CreateMap<AdUpdateDto, Ad>();
  10. #endregion
  11. #region Model to DTO
  12. CreateMap<Ad, AdResponseDto>();
  13. CreateMap<Ad, AdDetailsResponseDto>();
  14. CreateMap<Ad, AdApplicantsViewDto>();
  15. #endregion
  16. }
  17. }
  18. }