// // GET: /AllocateClassRoom/ public ActionResult Allocate() { DepartmentBind(); ViewBag.Courses = allocateManager.GetAllCourse(); ViewBag.Days = allocateManager.GetAllDay(); ViewBag.RoomNo = allocateManager.GetAllRoom(); //ViewBag.Departments = aDepartmentManager.GetAllDepartments(); return(View()); }
private IList <Course> GetAllCourse(int deptId) { return(allocateManager.GetAllCourse().Where(m => m.Department == deptId).ToList()); }