confirmation prompt bot framework
private async Task<DialogTurnResult> AskForAConfirmationAsync(
WaterfallStepContext stepContext,
CancellationToken cancellationToken)
{
var name = stepContext.Context.Activity?.Text;
Activity textPrompt = stepContext.Context.Activity.CreateReply($"Your name is {name}. Is that correct?");
PromptOptions promptOptions = new PromptOptions
{
Prompt = textPrompt
};
return await stepContext.PromptAsync(ConfirmPromptId, promptOptions, cancellationToken);
}