From aaa4c495f37d4613931c7561c8e012db1aad085a Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sun, 16 Feb 2020 13:33:30 +0200 Subject: See previous commit... --- .../Controllers/GatewayController.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs') diff --git a/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs index 75e953abe..e3391cd5d 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs @@ -7,10 +7,11 @@ using System.Web.Http; using Tango.MachineService.Gateway.DB; using Tango.MachineService.Gateway.DTO; using Tango.MachineService.Gateway.Messages; +using Tango.Web.Controllers; namespace Tango.MachineService.Gateway.Controllers { - public class GatewayController : ApiController + public class GatewayController : TangoController { [HttpPost] public EnvironmentsResponse GetEnvironments(EnvironmentsRequest request) @@ -19,16 +20,16 @@ namespace Tango.MachineService.Gateway.Controllers using (GatewayDbContext db = GatewayDbContext.CreateDefault()) { - var envs = db.ENVIRONMENTS.ToList(); + var envs = db.Environments.ToList(); foreach (var env in envs) { response.Environments.Add(new EnvironmentConfiguration() { ID = env.ID.ToString(), - Name = env.NAME, - Description = env.DESCRIPTION, - MachineServiceAddress = env.MACHINE_SERVICE_ADDRESS + Name = env.Name, + Description = env.Description, + MachineServiceAddress = env.MachineServiceAddress }); } } -- cgit v1.3.1