예제 #1
0
 public async Task CreateProduct([FromBody] CreateProductModel model)
 {
     await _client.CreateProductMutationAsync(new Optional <CreateProductInput>(new CreateProductInput
     {
         Name = model.Name,
         Price = model.Price,
         InventoryId = model.InventoryId.ConvertTo <Guid>(),
         CategoryId = model.CategoryId.ConvertTo <Guid>(),
         ImageUrl = model.ImageUrl,
         Description = model.Description
     }));
 }