Ejemplo n.º 1
0
        private async Task <DialogTurnResult> ShowLatestPayment(WaterfallStepContext stepContext, CancellationToken cancellationToken)
        {
            var advertiserCode = (string)stepContext.Result;

            var latestPayemntInfo = _client.GetLatestPayemntInfo(advertiserCode);
            await _responder.ReplyWith(stepContext.Context, "Thank you. Here is your CAP payment information:");

            await _responder.ReplyWith(stepContext.Context, LatestPaymentResponses.ResponseIds.LatestPaymentCard, latestPayemntInfo);

            return(await stepContext.EndDialogAsync());
        }