Exemplo n.º 1
0
        public async Task <IActionResult> DeleteKnowledgeBaseFromSrc(string source)
        {
            var resultModel = await _knowledgeBaseService.DeleteKnowledgeBase(_settings.QnAMaker.SubscriptionKey, _settings.QnAMaker.KnowledgeBaseId, new List <string> {
                source
            });

            if (resultModel.ResultStatus == ActionStatus.Success)
            {
                await GetKnowledgeBaseContents(true);
            }

            return(Json(new { ResultMessge = resultModel.ResultMessage, resultModel.ResultStatus }));
        }
        // DELETE/ удалить содержимое страницы "База знаний"
        public async Task <IActionResult> DeleteKnowledgeBase()
        {
            await _db_kb.DeleteKnowledgeBase();

            return(RedirectToAction("Index", "Panel"));
        }