aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs11
1 files changed, 6 insertions, 5 deletions
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
});
}
}