refactor(MappingProfile): add mapping for between TfFile and TfFileDto

This commit is contained in:
tekh 2025-08-01 21:33:51 +02:00
parent 4e5cb91967
commit d4b33d4b9a

View File

@ -22,5 +22,6 @@ public class MappingProfile : AutoMapper.Profile
CreateMap<PObjectStateHist, ObjectStateHistDto>()
.ForMember(dest => dest.Intl, opt => opt.MapFrom(src => src.State1 != null ? src.State1.IntlState : null))
.ForMember(dest => dest.Others, opt => opt.MapFrom(src => new string?[] { src.State2, src.State3, src.State4 }));
CreateMap<TfFile, TfFileDto>();
}
}