Exemple #1
0
        //
        // GET: /AllocateClassRoom/
        public ActionResult Allocate()
        {
            DepartmentBind();
            ViewBag.Courses = allocateManager.GetAllCourse();
            ViewBag.Days    = allocateManager.GetAllDay();
            ViewBag.RoomNo  = allocateManager.GetAllRoom();
            //ViewBag.Departments = aDepartmentManager.GetAllDepartments();

            return(View());
        }
Exemple #2
0
        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);
        }