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

12345678910111213141516171819
  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. #endregion
  15. }
  16. }
  17. }