Esempio n. 1
0
        private async Task <Answer> ExtractAnswersByQuestionTag(Guid applicationId, string questionTag, string questionId)
        {
            var questionTagData = await _qnaApiClient.GetTabularDataByTag(applicationId, questionTag);

            if (questionTagData == null)
            {
                return(null);
            }
            var answer = new Answer
            {
                QuestionId = questionId,
                Value      = questionTagData
            };

            return(answer);
        }