feat(api): в ApplicationInWorkResponse добавлены данные о расписании
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user