// // 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 List <SelectListItem> GetDayList() { List <Day> getDayList = allocateManager.GetAllDay(); List <SelectListItem> dayList = new List <SelectListItem>(); foreach (var aday in getDayList) { dayList.Add(new SelectListItem() { Value = aday.Id.ToString(), Text = aday.Name }); } return(dayList); }