Exemple #1
0
 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));
     }
 }
Exemple #2
0
 public async Task <Guid> SaveAsync(IngredientDetailModel ingredient)
 {
     return(ingredient.Id == Guid.Empty
         ? await ingredientClient.IngredientPostAsync(apiVersion, culture, ingredient)
         : await ingredientClient.IngredientPutAsync(apiVersion, culture, ingredient));
 }