feat(api): HostResponse, добавлено поле EkResponseArea

This commit is contained in:
Mikhail Trubnikov
2024-06-19 11:54:31 +10:00
parent 97f9b3bd14
commit 27f963371e
3 changed files with 7 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ namespace PARR.API.Controllers.V1
var paginationFilter = mapper.Map<PaginationFilter>(paginationQuery);
IQueryable<DAL.Models.Host> query = hostService.Get()
.Include(t=>t.WorkGroup)
.Include(t=>t.WorkGroup).ThenInclude(t=>t!.ResponseArea)
.Include(s => s.EkStatus)
.Include(s => s.ResponseArea)
.Include(t => t.ApplicationsInHosts).ThenInclude(t => t.Application).ThenInclude(t => t!.ApplicationType)
@@ -69,7 +69,7 @@ namespace PARR.API.Controllers.V1
public async Task<IActionResult> GetById([FromRoute] Guid id)
{
var host = await hostService.Get()
.Include(t => t.WorkGroup)
.Include(t => t.WorkGroup).ThenInclude(t => t!.ResponseArea)
.Include(s => s.EkStatus)
.Include(s => s.ResponseArea)
.Include(t => t.ApplicationsInHosts).ThenInclude(t => t.Application).ThenInclude(t => t!.ApplicationType)