コード例 #1
0
 public ActionResult CourseMaintain(TCourseMaintainModel model)
 {
     //TODO add new
     //if (!CommonInfo.IsLogin())
     //{
     //    return RedirectToAction("Index");
     //}
     //ViewBag.Title = "课程维护";
     //ViewBag.CurUrl = Url.Action("CourseMaintain");
     return(View());
 }
コード例 #2
0
        public ActionResult CourseMaintain()
        {
            if (!CommonInfo.IsLogin())
            {
                return(RedirectToAction("Index"));
            }
            ViewBag.Title  = "课程维护";
            ViewBag.CurUrl = Url.Action("CourseMaintain");
            var model = new TCourseMaintainModel();

            return(View(model));
        }