From 0d8b897385ca93aaba67328986f87ae2366ae04b Mon Sep 17 00:00:00 2001 From: Lucio Maranta Date: Wed, 30 May 2018 16:50:44 +0200 Subject: [PATCH] Added response into load/unload --- Step/Controllers/WebApi/ToolTableController.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Step/Controllers/WebApi/ToolTableController.cs b/Step/Controllers/WebApi/ToolTableController.cs index cfd92495..19c53b40 100644 --- a/Step/Controllers/WebApi/ToolTableController.cs +++ b/Step/Controllers/WebApi/ToolTableController.cs @@ -381,7 +381,12 @@ namespace Step.Controllers.WebApi if (libraryError.IsError()) return BadRequest(libraryError.localizationKey); - return Ok(toolId); + return Ok( + new { + magazineId, + positionId, + toolId = toolId.ToolId + }); } } @@ -400,7 +405,12 @@ namespace Step.Controllers.WebApi if (libraryError.IsError()) return BadRequest(libraryError.localizationKey); - return Ok(); + return Ok(new + { + magazineId, + positionId, + toolId = 0 + }); } }