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