コード例 #1
0
ファイル: IngredientsFacade.cs プロジェクト: SuperMartas/iw5
 public async Task <Guid> SaveAsync(IngredientDetailModel data)
 {
     if (data.Id == Guid.Empty)
     {
         return(await ingredientClient.IngredientPostAsync(apiVersion, culture, data));
     }
     else
     {
         return(await ingredientClient.IngredientPutAsync(apiVersion, culture, data));
     }
 }
コード例 #2
0
ファイル: IngredientsFacade.cs プロジェクト: SuperMartas/iw5
 public async Task <Guid> SaveAsync(IngredientDetailModel ingredient)
 {
     return(ingredient.Id == Guid.Empty
         ? await ingredientClient.IngredientPostAsync(apiVersion, culture, ingredient)
         : await ingredientClient.IngredientPutAsync(apiVersion, culture, ingredient));
 }