Exemplo n.º 1
0
        public void SetCourseViewBag(long?selectedId = null)
        {
            var dao = new DepartmentDao();

            ViewBag.DepartmentID = new SelectList(dao.ListAll(), "Id", "DepartmentName", selectedId);
            var fac = new FacultyDao();

            ViewBag.FacultyID = new SelectList(fac.ListAll(), "Id", "FirstName", selectedId);
            var cou = new CourseDao();

            ViewBag.ID = new SelectList(cou.ListAll(), "Id", "CourseName", selectedId);
        }
Exemplo n.º 2
0
        public void SetViewBag(long?selectedId = null)
        {
            var dao = new DepartmentDao();

            ViewBag.DepartmentID = new SelectList(dao.ListAll(), "Id", "DepartmentName", selectedId);
        }