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:
@@ -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>();
|
||||||
|
|||||||
Reference in New Issue
Block a user