Exemplo n.º 1
0
        public virtual async Task ResumeGetAnswer(IDialogContext context, IAwaitable <string> mobile)
        {
            string response = await mobile;

            answer = response;

            try
            {
                QureyController qc = new QureyController();
                qc.PostTrainedAnswer(question, answer);
            }
            finally
            {
                await context.PostAsync("Thanks for training me. If you would like to add more, just type 'train'");

                context.Done(this);
            }
        }