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 + }); } }