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)); }
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); }