feat(api): paginationQuery добавлен параметр отключения пагинации. Контроллер ApplicationInWorks GetAll.

This commit is contained in:
Mikhail Kuznetsov
2024-03-12 15:09:12 +10:00
parent 10661a88c6
commit 27b051a987
8 changed files with 140 additions and 9 deletions

View File

@@ -173,10 +173,9 @@ namespace PARR.API.MappingProfiles
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))
.ForMember(t => t.TemplateName, o => o.MapFrom(s => s.Template!.Name));
.ForMember(d => d.Date, o => o.MapFrom(s => s.DateCreated))
.ForMember(d => d.Level, o => o.MapFrom(s => s.AgentHistoryLevel))
.ForMember(d => d.TemplateName, o => o.MapFrom(s => s.Template!.Name));
#region User
@@ -208,6 +207,10 @@ namespace PARR.API.MappingProfiles
#endregion
CreateMap<ApplicationsInWork, ApplicationInWorkResponse>()
.ForMember(d => d.Work, o => o.MapFrom(s => s.Work))
.ForMember(d => d.Application, o => o.MapFrom(s => s.Application));
}
}
}