public async Task <IActionResult> Set(int id, [FromBody] ProductStockAddDTO stockChanges) { string errorMessage; try { var result = await _services.Set(id, stockChanges); return(Ok(result)); } catch (Exception ex) { errorMessage = ex.Message; } return(Ok(ResponseResult.Failure <List <ProductStockDTO> >(errorMessage))); }