-
Notifications
You must be signed in to change notification settings - Fork 2
SearchByName
alex-caroline edited this page Nov 9, 2018
·
4 revisions
var foodsListResponse = foodQueryServiceClient.SearchByName(new FoodsByNameRequest { FoodName = "Pizza" });
var foodsByNameRequest = new FoodsByNameRequest
{
FoodName = "Pizza",
FilterByPublicationStates = new[] { PublicationState.Draft, PublicationState.Published }
};
var foodsListResponse = foodQueryServiceClient.SearchByName(foodsByNameRequest);
var foodsByNameRequest = new FoodsByNameRequest
{
FoodName = "Pizza",
FilterByPublicationStates = new[] { PublicationState.Draft, PublicationState.Published },
FilterByFoodTypes = new[] { FoodType.Recipe }
};
var foodsListResponse = foodQueryServiceClient.SearchByName(foodsByNameRequest);
var foodsByNameRequest = new FoodsByNameRequest
{
FoodName = "Pizza",
FilterByPublicationStates = new[] { PublicationState.Draft, PublicationState.Published },
FilterByFoodTypes = new[] { FoodType.Recipe },
StartIndex = 1,
PageSize = 10
};
var foodsListResponse = foodQueryServiceClient.SearchByName(foodsByNameRequest);
var foodsByNameRequest = new FoodsByNameRequest
{
FoodName = "Pizza",
FilterByPublicationStates = new[] { PublicationState.Draft, PublicationState.Published },
FilterByFoodTypes = new[] { FoodType.Recipe },
DataSourceFilter = new [] {DataSources.UserFoods},
StartIndex = 1,
PageSize = 10
};
var foodsListResponse = foodQueryServiceClient.SearchByName(foodsByNameRequest);