feat(api): в ApplicationInWorkResponse добавлены данные о расписании

This commit is contained in:
Mikhail Trubnikov
2024-04-02 14:20:11 +10:00
parent 82f0f846ee
commit 76bfc5aa16
4 changed files with 69 additions and 1 deletions

View File

@@ -116,6 +116,7 @@ namespace PARR.API.Controllers.V1
IQueryable<ApplicationsInWork> query = applicationsInWorkService.Get()
.Include(t => t.Application).ThenInclude(t=>t!.ApplicationType)
.Include(t => t.Work)
.Include(t => t.Templates)
.OrderBy(t => t.ShortDescription);
if (!string.IsNullOrEmpty(filter.ShortDescription))
@@ -144,6 +145,7 @@ namespace PARR.API.Controllers.V1
var applicationInWork = await applicationsInWorkService.Get()
.Include(t => t.Application).ThenInclude(t => t!.ApplicationType)
.Include(t => t.Work)
.Include(t=>t.Templates)
.FirstOrDefaultAsync(t => t.Id == id);
if (applicationInWork == null)