feat(api): в HostResponse добавлен объект EkStatus

This commit is contained in:
Mikhail Trubnikov
2024-06-19 14:11:58 +10:00
parent 27f963371e
commit 8722be0d87
3 changed files with 7 additions and 4 deletions

View File

@@ -87,6 +87,7 @@ namespace PARR.API.MappingProfiles
.Include<DAL.Models.Host, HostTemplateResponse>()
.Include<DAL.Models.Host, HostWithApplicationsResponse>()
.ForMember(d => d.Status, o => o.MapFrom(s => s.EkStatus!.Name))
.ForMember(d => d.EkStatus, o => o.MapFrom(s => s.EkStatus))
.ForMember(d => d.ResponseArea, o => o.MapFrom(s => s.ResponseArea!.Name))
.ForMember(d => d.WorkGroupName, o => o.MapFrom(s => s.WorkGroup!.Name))
.ForMember(d => d.WorkGroup, o => o.MapFrom(s => s.WorkGroup))