コード例 #1
0
 public async Task EditProduct([FromBody] EditProductModel model)
 {
     await _client.UpdateProductMutationAsync(new Optional <UpdateProductInput>(new UpdateProductInput
     {
         Name = model.Name,
         Price = model.Price,
         InventoryId = model.InventoryId.ConvertTo <Guid>(),
         CategoryId = model.CategoryId.ConvertTo <Guid>(),
         ImageUrl = model.ImageUrl,
         Description = model.Description
     }));
 }