diff --git a/src/ReC.Application/Common/Dto/DtoMappingProfile.cs b/src/ReC.Application/Common/Dto/DtoMappingProfile.cs index d9111c6..9e5b374 100644 --- a/src/ReC.Application/Common/Dto/DtoMappingProfile.cs +++ b/src/ReC.Application/Common/Dto/DtoMappingProfile.cs @@ -1,4 +1,5 @@ -using ReC.Domain.Views; +using ReC.Application.Common.Behaviors.Action; +using ReC.Domain.Views; namespace ReC.Application.Common.Dto; @@ -6,7 +7,12 @@ public class DtoMappingProfile : AutoMapper.Profile { public DtoMappingProfile() { - CreateMap(); + CreateMap() + .ForMember(dest => dest.PreprocessingQuery, opt => opt.MapFrom((src, _) => + src.PreprocessingQuery?.ReplacePlaceholders(src))) + .ForMember(dest => dest.PostprocessingQuery, opt => opt.MapFrom((src, _) => + src.PostprocessingQuery?.ReplacePlaceholders(src))); + CreateMap(); CreateMap(); }