diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-16 13:33:30 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-16 13:33:30 +0200 |
| commit | aaa4c495f37d4613931c7561c8e012db1aad085a (patch) | |
| tree | e62685e3bfb6f0b9448945c80b060b5b30b3e8c3 /Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/GatewayController.cs | |
| parent | 464a924f17cd91025be30c73c2c7b615a5333931 (diff) | |
| download | Tango-aaa4c495f37d4613931c7561c8e012db1aad085a.tar.gz Tango-aaa4c495f37d4613931c7561c8e012db1aad085a.zip | |
See previous commit...
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.cs | 11 |
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 }); } } |
