Merge branch 'develop' of https://bitbucket.org/ncarminati/cms_step into develop

This commit is contained in:
Paolo Possanzini
2018-05-30 17:42:56 +02:00
+12 -2
View File
@@ -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
});
}
}