aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-05-20 17:46:21 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-05-20 17:46:21 +0300
commit54ef796c5afa8d1ccb4b8b148d765f590b4de03a (patch)
treee3b1390c25736abe588048421844f0a17905ba68 /Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs
parent128a245cf12d7720e0fd0cea8810426ac32bc84d (diff)
downloadTango-54ef796c5afa8d1ccb4b8b148d765f590b4de03a.tar.gz
Tango-54ef796c5afa8d1ccb4b8b148d765f590b4de03a.zip
Improved Gateway environments handling.
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.cs5
1 files changed, 3 insertions, 2 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 e3391cd5d..e393c7264 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs
@@ -20,7 +20,7 @@ namespace Tango.MachineService.Gateway.Controllers
using (GatewayDbContext db = GatewayDbContext.CreateDefault())
{
- var envs = db.Environments.ToList();
+ var envs = db.Environments.Where(x => x.Active).ToList();
foreach (var env in envs)
{
@@ -29,7 +29,8 @@ namespace Tango.MachineService.Gateway.Controllers
ID = env.ID.ToString(),
Name = env.Name,
Description = env.Description,
- MachineServiceAddress = env.MachineServiceAddress
+ MachineServiceAddress = env.MachineServiceAddress,
+ DisplayIndex = env.DisplayIndex
});
}
}