private async Task ResumeAfterSend(IDialogContext context, IAwaitable <object> result) { object obj = await result; MyLead.SetAction(Action); //await context.PostAsync($"Hi { MyLead.Name}! And thank you for using APISourceBot !"); // echo the current lead details - it will direct to the submit lead intent, in case he clicks on 'Confirm' var message = context.MakeMessage(); message.Attachments.Add(MyLead.GetLeadCard(tproducts)); await context.PostAsync(message); }
private async Task ResumeAfterForm1(IDialogContext context, IAwaitable <Lead> result) { MyLead = await result; if (MyLead != null) { MyLead.SetAction(Action); var message = context.MakeMessage(); message.Attachments.Add(MyLead.GetLeadCard(tproducts)); await context.PostAsync(message); } else { await context.PostAsync("Lead process ended without a lead"); } }