Exemplo n.º 1
0
        public async Task <IActionResult> GetTopicDetails([FromBody] IntentInput intentInput)
        {
            var topics = await topicsResourcesBusinessLogic.GetTopicDetailsAsync(intentInput);

            if (topics == null)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }

            return(Ok(topics));
        }
        public ConversationResponse Create(string intent, string message, bool conversationEnded, IntentInput options)
        {
            var response = Create(intent, message, conversationEnded);

            response.Input = options;

            return(response);
        }
 public async Task <dynamic> GetTopicDetailsAsync(IntentInput intentInput)
 {
     return(await dbClient.FindItemsWhereInClauseAsync(dbSettings.TopicsCollectionId, Constants.Name, intentInput.Intents, intentInput.Location));
 }