Guest User

Untitled

a guest
May 21st, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. var res = new FormDialog<SuperChoice>(new SuperChoice(), SuperChoice.BuildForm,FormOptions.PromptInStart);
  2. await context.PostAsync(res.ToString());
  3. context.Call(res, ChoiceSelected);
  4.  
  5. var bookingform = await result;
  6. if(bookingform.Choice.ToString().Equals("Leave"))
  7. {
  8. var res1 = new FormDialog<Leave_choice>(new Leave_choice(), Leave_choice.BuildForm, FormOptions.PromptInStart);
  9. context.Call(res1, LeaveSelected);
  10. }
  11. //various other choices
  12.  
  13. var leave_form = await result1;
  14. //process leave request
  15. await context.PostAsync("Leave request submitted.");
  16.  
  17. var leave_form = await result1;
Add Comment
Please, Sign In to add comment