fix(api): отображение рабочей группы в хостах
This commit is contained in:
@@ -39,6 +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(s => s.EkStatus)
|
||||
.Include(s => s.ResponseArea)
|
||||
.Include(t => t.ApplicationsInHosts).ThenInclude(t => t.Application).ThenInclude(t => t!.ApplicationType)
|
||||
@@ -68,6 +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(s => s.EkStatus)
|
||||
.Include(s => s.ResponseArea)
|
||||
.Include(t => t.ApplicationsInHosts).ThenInclude(t => t.Application).ThenInclude(t => t!.ApplicationType)
|
||||
|
||||
Reference in New Issue
Block a user