Пример #1
0
 /// <inheritdoc/>
 public async Task <RecipeDto> GetAsync(long id)
 {
     return(await _http.GetAsync <RecipeDto>($"api/recipes/{id}"));
 }
Пример #2
0
 /// <inheritdoc/>
 public async Task <IList <TagDto> > GetAllForRecipeAsync(long recipeId)
 {
     return(await _http.GetAsync <IList <TagDto> >($"api/recipes/{recipeId}/tags"));
 }
Пример #3
0
 /// <inheritdoc />
 public async Task <IEnumerable <FoodDto> > GetAll()
 {
     return(await _http.GetAsync <IEnumerable <FoodDto> >($"api/food"));
 }