Update ReplacePlaceholders mapping to use single argument

Removed src.Profile from ReplacePlaceholders calls in DtoMappingProfile for PreprocessingQuery and PostprocessingQuery mappings, now passing only src as the argument. This simplifies the mapping logic and aligns with the updated method signature.
This commit is contained in:
2026-03-30 14:32:31 +02:00
parent 6c9eab6df6
commit 77baf395ce

View File

@@ -8,9 +8,9 @@ public class DtoMappingProfile : AutoMapper.Profile
{ {
CreateMap<RecActionView, RecActionViewDto>() CreateMap<RecActionView, RecActionViewDto>()
.ForMember(dest => dest.PreprocessingQuery, opt => opt.MapFrom((src, _) => .ForMember(dest => dest.PreprocessingQuery, opt => opt.MapFrom((src, _) =>
src.PreprocessingQuery?.ReplacePlaceholders(src, src.Profile))) src.PreprocessingQuery?.ReplacePlaceholders(src)))
.ForMember(dest => dest.PostprocessingQuery, opt => opt.MapFrom((src, _) => .ForMember(dest => dest.PostprocessingQuery, opt => opt.MapFrom((src, _) =>
src.PostprocessingQuery?.ReplacePlaceholders(src, src.Profile))); src.PostprocessingQuery?.ReplacePlaceholders(src)));
CreateMap<ResultView, ResultViewDto>(); CreateMap<ResultView, ResultViewDto>();
CreateMap<ProfileView, ProfileViewDto>(); CreateMap<ProfileView, ProfileViewDto>();