feat(api): реализован GetAll UnitFieldValue по Id FieldValue

This commit is contained in:
Mikhail Kuznetsov
2025-09-22 11:04:27 +10:00
parent e094db168f
commit 8b0f173abe
7 changed files with 84 additions and 21 deletions

View File

@@ -108,7 +108,7 @@ namespace PARR.API.MappingProfiles
CreateMap<UnitField, FieldResponse>()
.ForMember(d => d.Name, o => o.MapFrom(s => (string.IsNullOrEmpty(s.DisplayName)) ? s.AihitName : s.DisplayName));
CreateMap<UnitFieldValue, ValueResponse>();
CreateMap<UnitFieldValue, UnitFieldValueResponse>();
CreateMap<UnitInValue, AttributeResponse>()
.ForMember(d => d.Field, o => o.MapFrom(s => s.Field))
@@ -353,9 +353,6 @@ namespace PARR.API.MappingProfiles
CreateMap<WeekendDay, WeekendResponse>();
CreateMap<UnitField, FieldResponse>()
.ForMember(d => d.Name, o => o.MapFrom(s => (s.DisplayName == null) ? s.AihitName : s.DisplayName));
#region TemplateHistory
CreateMap<TemplateHistory, TemplateHistoryResponse>()