private void GroupMathDropDownList(object selectedParent = null) { GroupMathDao bdDao = new GroupMathDao(); var items = bdDao.ToList(); ViewBag.Parents = new SelectList(items, "GroupMathsID", "Name", selectedParent); }
// GET: Admin/GroupMath public ActionResult Index() { GroupMathDao bdDao = new GroupMathDao(); ViewBag.lstCate = bdDao.ToList(); //TempData["AlertMessage"] = null; return(View(ViewBag.lstCate)); }
// GET: Admin/MathStudent public ActionResult Index() { GroupMathDao bdDao = new GroupMathDao(); ViewBag.lstGroupMath = bdDao.ToList(); MathStudentDao db = new MathStudentDao(); return(View(db.ToList())); }