feat(api): AgentTask, AgentHistory

This commit is contained in:
Mikhail Trubnikov
2023-10-19 11:22:35 +10:00
parent 5a40e5c1c1
commit b3b3cc8e0d
21 changed files with 3031 additions and 3 deletions

View File

@@ -142,6 +142,12 @@ namespace PARR.API.MappingProfiles
.ForMember(d => d.Type, o => o.MapFrom(s => s.Type));
// === EsppSch ===
CreateMap<AgentHistoryLevel, AgentHistoryLevelResponse>();
CreateMap<AgentHistory, AgentHistoryResponse>()
.ForMember(t => t.Date, o => o.MapFrom(s => s.DateCreated))
.ForMember(t => t.Level, o => o.MapFrom(s => s.AgentHistoryLevel));
}
}
}