Example #1
0
        public ActionResult ClassPage_1(string Name)
        {
            KnowledgeClassBll      bll  = new KnowledgeClassBll();
            IList <KnowledgeClass> list = bll.KnowledgeClassPage(string.Empty);

            ViewBag.list = list;
            return(View());
        }
Example #2
0
        /// <summary>
        /// 新增更新
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public ActionResult AddClass(int Id = 0, bool isUpdate = false)
        {
            KnowledgeClass    MODEL = new KnowledgeClass();
            KnowledgeClassBll bll   = new KnowledgeClassBll();

            if (Id != 0)
            {
                MODEL = bll.GetMoel(Id);
            }
            IList <KnowledgeClass> list = bll.KnowledgeClassPage(string.Empty);

            ViewBag.list   = list;
            ViewBag.Update = isUpdate;
            return(View(MODEL));
        }
 public ActionResult ClassPage_1(string Name)
 {
     KnowledgeClassBll bll = new KnowledgeClassBll();
     IList<KnowledgeClass> list = bll.KnowledgeClassPage(string.Empty);
     ViewBag.list = list;
     return View();
 }
 /// <summary>
 /// 新增更新
 /// </summary>
 /// <param name="Id"></param>
 /// <returns></returns>
 public ActionResult AddClass(int Id = 0, bool isUpdate = false)
 {
     KnowledgeClass MODEL = new KnowledgeClass();
     KnowledgeClassBll bll = new KnowledgeClassBll();
     if (Id != 0)
     {
         MODEL = bll.GetMoel(Id);
     }
     IList<KnowledgeClass> list = bll.KnowledgeClassPage(string.Empty);
     ViewBag.list = list;
     ViewBag.Update = isUpdate;
     return View(MODEL);
 }