//修改题库状态
        public void EditKnowledgeBaseTypeManagement(int id)
        {
            KnowledgeBaseTypeManagement knowledgeBaseTypeManagement = db.KnowledgeBaseTypeManagement.Find(id);
            string rez = knowledgeBaseTypeManagement.OpenOrNot;

            if (rez == "0")
            {
                knowledgeBaseTypeManagement.OpenOrNot = "1";
                db.SaveChanges();
            }
            else
            {
                knowledgeBaseTypeManagement.OpenOrNot = "0";
                db.SaveChanges();
            }
        }
 //新增题库
 public void AddKnowledgeBaseTypeManagement(KnowledgeBaseTypeManagement knowledgeBaseTypeManagement)
 {
     Dal.AddKnowledgeBaseTypeManagement(knowledgeBaseTypeManagement);
 }
 //新增题库
 public void AddKnowledgeBaseTypeManagement(KnowledgeBaseTypeManagement knowledgeBaseTypeManagement)
 {
     db.KnowledgeBaseTypeManagement.Add(knowledgeBaseTypeManagement);
     db.SaveChanges();
 }
 public ActionResult AddKnowledgeBaseTypeManagement(KnowledgeBaseTypeManagement knowledgeBaseTypeManagement)
 {
     Bll.AddKnowledgeBaseTypeManagement(knowledgeBaseTypeManagement);
     return(RedirectToAction("KnowledgeBaseTypeManagement"));
 }