Ejemplo n.º 1
0
        private async Task <DialogTurnResult> SelectMonthAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken)
        {
            stepContext.Values["Month"] = ((FoundChoice)stepContext.Result).Value;

            for (int i = 0; i < months.Length; i++)
            {
                if (stepContext.Values["Month"].ToString() == months[i])
                {
                    indexer = Convert.ToString(i + 1);
                }
            }
            var orderList = await BotMethods.GetSalaryDeduction(indexer, this.botConfig.Value.GetSalaryDeduction);

            bool test = ExcelGenerator.Run(orderList);
            await stepContext.EndDialogAsync();

            return(await stepContext.BeginDialogAsync(nameof(OverviewDialog), null, cancellationToken));
        }