Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. private async Task<DialogTurnResult> LeaveDateRangeStepAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken)
  2. {
  3. var leaveApply = (LeaveApplication)stepContext.Options;
  4.  
  5. if (leaveApply.TravelDate == null)
  6. {
  7. return await stepContext.PromptAsync(nameof(TextPrompt), new PromptOptions { Prompt = MessageFactory.Text("Please Provide me with your Leaves Tenure") }, cancellationToken);
  8. }
  9. else
  10. {
  11. return await stepContext.NextAsync(leaveApply.TravelDate, cancellationToken);
  12. }
  13. }
  14.  
  15. if (topIntent == "LeavesDateTenure")
  16. { // here i want my dialog to work
  17.  
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement