public async Task <ActionResult <ListResponse <IngredientResponse> > > GetIngredientsListAsync([FromQuery] IngredientFilter ingredient, [FromQuery] ListOptions options, [FromServices] ListQuery <IngredientResponse, IngredientFilter> query) =>
 await query.RunAsync(ingredient, options);
Пример #2
0
 public async Task <ActionResult <ListResponse <ReviewResponse> > > GetReviewsListAsync([FromQuery] ReviewFilter review, [FromQuery] ListOptions options, [FromServices] ListQuery <ReviewResponse, ReviewFilter> query) =>
 await query.RunAsync(review, options);
Пример #3
0
 public async Task <ActionResult <ListResponse <TagResponse> > > GetTagsListAsync([FromQuery] TagFilter filter, [FromQuery] ListOptions options, [FromServices] ListQuery <TagResponse, TagFilter> query) =>
 await query.RunAsync(filter, options);
 public async Task <ActionResult <ListResponse <CategoryResponse> > > GetCategoriesListAsync([FromQuery] CategoryFilter categoryFilter, [FromQuery] ListOptions options, [FromServices] ListQuery <CategoryResponse, CategoryFilter> query) =>
 await query.RunAsync(categoryFilter, options);
 public async Task <ActionResult <ListResponse <TypeFoodResponse> > > GetTypeFoodsListAsync([FromQuery] TypeFoodFilter typeFood, [FromQuery] ListOptions options, [FromServices] ListQuery <TypeFoodResponse, TypeFoodFilter> query) =>
 await query.RunAsync(typeFood, options);
Пример #6
0
 public async Task <ActionResult <ListResponse <UserResponse> > > GetUsersListAsync([FromQuery] UserFilter filter, [FromQuery] ListOptions options, [FromServices] ListQuery <UserResponse, UserFilter> query) =>
 await query.RunAsync(filter, options);