Beispiel #1
0
        private void GroupMathDropDownList(object selectedParent = null)
        {
            GroupMathDao bdDao = new GroupMathDao();
            var          items = bdDao.ToList();

            ViewBag.Parents = new SelectList(items, "GroupMathsID", "Name", selectedParent);
        }
Beispiel #2
0
        // GET: Admin/GroupMath
        public ActionResult Index()
        {
            GroupMathDao bdDao = new GroupMathDao();

            ViewBag.lstCate = bdDao.ToList();
            //TempData["AlertMessage"] = null;
            return(View(ViewBag.lstCate));
        }
Beispiel #3
0
        // GET: Admin/MathStudent
        public ActionResult Index()
        {
            GroupMathDao bdDao = new GroupMathDao();

            ViewBag.lstGroupMath = bdDao.ToList();
            MathStudentDao db = new MathStudentDao();

            return(View(db.ToList()));
        }