public IActionResult Put(string id, [FromBody] ProductImage image) { ProductImageBO productImageBO; ObjectResult response; try { _log.LogInformation($"Starting Put( {id}, '{JsonConvert.SerializeObject(image, Formatting.None)}')"); productImageBO = new ProductImageBO(_loggerFactory, _config); image.BlobFile.ID = id; image = productImageBO.Update(image); response = Ok(image); _log.LogInformation($"Finishing Put( {id} )"); } catch (Exception ex) { _log.LogError(ex.Message); response = StatusCode(500, ex.Message); } return(response); }