public ActionResult GetKnowledges(KnowledgeSearch search)
        {
            KnowledgeBll knowledgeBll = new KnowledgeBll();
            var          list         = knowledgeBll.GetPagingKnowledge(search.Pagination, search.Id, search.NameOrKey, search.KnowledgeType);
            var          table        = AbhsTableFactory.Create(list, search.Pagination.TotalCount);

            return(Json(table, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public LucyResponder(Database database)
        {
            this.lastContext    = string.Empty;
            this.currentContext = string.Empty;

            this.response           = string.Empty;
            this.lastResponse       = string.Empty;
            this.availableResponses = new List <string>();

            this.database        = database;
            this.knowledgeSearch = new KnowledgeSearch(database);
        }