public ActionResult EditCourseAtivity(Course_UnitContent model)
        {
            Course_UnitContentBLL bll = new Course_UnitContentBLL();

            model.Display = true;

            if (bll.Update(model))
            {
                return Json(new { Result = true, UnitContent = model.Id, Msg = "修改成功!" }, JsonRequestBehavior.AllowGet);
            }
            else
            {
                return Json(new { Result = false, UnitContent = model.Id, Msg = "修改失败!" }, JsonRequestBehavior.AllowGet);
            }
        }
        public ActionResult DisplayCourseAtivity(int id)
        {
            Course_UnitContentBLL bll = new Course_UnitContentBLL();

            Course_UnitContent model = bll.GetModel(id, "Delflag = 0");

            //设置是否显示
            if (model.Display)
            {
                model.Display = false;
            }
            else
            {
                model.Display = true;
            }

            if (bll.Update(model))
            {
                return Json(new { Result = true, Display = model.Display }, JsonRequestBehavior.AllowGet);
            }
            else
            {
                return Json(new { Result = false, Display = model.Display }, JsonRequestBehavior.AllowGet);
            }
        }