public IActionResult PatchProduct(int id, JsonPatchDocument <Product> patch) { var product = _storage.GetProduct(id); if (product == null) { return(NotFound()); } patch.ApplyTo(product); _storage.UpdateProduct(product); return(NoContent()); }