Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

PatternMappingProfile.cs 612B

123456789101112131415161718192021222324
  1. using Diligent.WebAPI.Contracts.DTOs.Pattern;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Diligent.WebAPI.Business.MappingProfiles
  8. {
  9. public class PatternMappingProfile : Profile
  10. {
  11. public PatternMappingProfile()
  12. {
  13. #region DTO to Model
  14. CreateMap<PatternCreateDto, Pattern>();
  15. CreateMap<PatternUpdateDto, Pattern>();
  16. #endregion
  17. #region Model to DTO
  18. CreateMap<Pattern, PatternResponseDto>();
  19. #endregion
  20. }
  21. }
  22. }