Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private async Task<DialogTurnResult> LeaveDateRangeStepAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken)
- {
- var leaveApply = (LeaveApplication)stepContext.Options;
- if (leaveApply.TravelDate == null)
- {
- return await stepContext.PromptAsync(nameof(TextPrompt), new PromptOptions { Prompt = MessageFactory.Text("Please Provide me with your Leaves Tenure") }, cancellationToken);
- }
- else
- {
- return await stepContext.NextAsync(leaveApply.TravelDate, cancellationToken);
- }
- }
- if (topIntent == "LeavesDateTenure")
- { // here i want my dialog to work
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement