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