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

123456789101112131415161718
  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. #endregion
  14. }
  15. }
  16. }