From b939e19334c413ff790e91c44e0ce04733e7cb24 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 29 Aug 2025 10:07:45 +0200 Subject: [PATCH] move mapping profile --- .../Dto/MappingProfile.cs | 4 ---- .../Receivers/MappingProfile.cs | 23 +++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 EnvelopeGenerator.Application/Receivers/MappingProfile.cs diff --git a/EnvelopeGenerator.Application/Dto/MappingProfile.cs b/EnvelopeGenerator.Application/Dto/MappingProfile.cs index ed9fcdd5..e8dddc1b 100644 --- a/EnvelopeGenerator.Application/Dto/MappingProfile.cs +++ b/EnvelopeGenerator.Application/Dto/MappingProfile.cs @@ -35,8 +35,6 @@ public class MappingProfile : Profile CreateMap(); CreateMap(); CreateMap(); - CreateMap(); - CreateMap(); CreateMap(); // DTO to Entity mappings @@ -51,8 +49,6 @@ public class MappingProfile : Profile CreateMap(); CreateMap(); CreateMap().ForMember(rcv => rcv.EnvelopeReceivers, rcvReadDto => rcvReadDto.Ignore()); - CreateMap(); - CreateMap(); CreateMap(); CreateMap(); CreateMap(); diff --git a/EnvelopeGenerator.Application/Receivers/MappingProfile.cs b/EnvelopeGenerator.Application/Receivers/MappingProfile.cs new file mode 100644 index 00000000..ba9fce23 --- /dev/null +++ b/EnvelopeGenerator.Application/Receivers/MappingProfile.cs @@ -0,0 +1,23 @@ +using AutoMapper; +using EnvelopeGenerator.Application.Receivers.Commands; +using EnvelopeGenerator.Domain.Entities; + +namespace EnvelopeGenerator.Application.Receivers; + +/// +/// +/// +public class MappingProfile : Profile +{ + /// + /// + /// + public MappingProfile() + { + CreateMap(); + CreateMap(); + + CreateMap(); + CreateMap(); + } +}