Beispiel #1
0
        private async Task <DialogTurnResult> GetCurrentSection(WaterfallStepContext stepContext, CancellationToken cancellationToken)
        {
            await PopulateStateObjects(stepContext);

            _graphHelper.Authenticate();

            var today = DateTime.Today;

            var notebookId = _onboardingState.Journal.NotebookId;
            var section    = await GetOrCreateNotebookSection(notebookId, today);

            AddUpdateStepContextValue(stepContext, "Section", section);

            var sectionId = section.Id;

            return(await stepContext.NextAsync(sectionId, cancellationToken));
        }