private async Task ProductOptionsReceivedAsync(IDialogContext context, ProductQuery query) { var products = AzureSearch.CreateClient() .WithIndex(AzureSearch.Products) .Sort(nameof(Product.ListPrice), query.Sort) .Limit(query.Limit) .Find <Product>(query.ProductName); if (products.Any()) { PromptDialog.Choice(context, ProductSelectionReceivedAsync, products, "Add to basket:"); } else { await context.PostAsync("No products found."); await DisplayActionsCard(context); context.Wait(ActionSelectionReceivedAsync); } }