small fixes
parent
419744d036
commit
a7fdbe502b
|
@ -37,8 +37,8 @@ namespace NetworkResurrector.Agent.Application.Queries
|
||||||
|
|
||||||
public async Task<Model[]> Handle(Query request, CancellationToken cancellationToken)
|
public async Task<Model[]> Handle(Query request, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
var bots = await _repository.GetMachines();
|
var machines = await _repository.GetMachines();
|
||||||
var result = _mapper.Map<Model[]>(bots);
|
var result = _mapper.Map<Model[]>(machines);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ using Microsoft.Extensions.Hosting;
|
||||||
using NDB.Extensions.Swagger;
|
using NDB.Extensions.Swagger;
|
||||||
using NDB.Security.Authentication.Identity;
|
using NDB.Security.Authentication.Identity;
|
||||||
using NetworkResurrector.Agent.Application;
|
using NetworkResurrector.Agent.Application;
|
||||||
|
using NetworkResurrector.Agent.Domain.Data;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
|
@ -44,6 +45,9 @@ namespace NetworkResurrector.Agent
|
||||||
// Swagger
|
// Swagger
|
||||||
services.AddSwagger("NetworkResurrectorAgent API");
|
services.AddSwagger("NetworkResurrectorAgent API");
|
||||||
|
|
||||||
|
// Data access
|
||||||
|
services.AddDataAccess();
|
||||||
|
|
||||||
// Application
|
// Application
|
||||||
services.AddApplicationServices();
|
services.AddApplicationServices();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue