public ActionResult AllocateClassroom()
 {
     ViewBag.Department = _departmentManager.GetAllDepartments();
     ViewBag.Day        = _dayManager.GetAllDays();
     ViewBag.Classroom  = _classroomManager.GetAllRooms();
     return(View());
 }
 public ActionResult AllocateClassRoom()
 {
     ViewBag.AllDepartment = aDepartmentManager.GetAll();
     ViewBag.AllClassRoom  = aRoomManager.GetAllRooms();
     ViewBag.AllDays       = aDayManager.GetAllDays();
     return(View());
 }
Пример #3
0
 public ActionResult Allocate()
 {
     ViewBag.Departments = aDepartmentManager.GetAllDepartments();
     ViewBag.Days        = aDayManager.GetAllDays();
     ViewBag.Rooms       = aRoomManager.GetAllRooms();
     return(View());
 }
Пример #4
0
        // GET: /Classroom/
        public ActionResult Save()
        {
            List <Day> days = dayManager.GetAllDays();

            ViewBag.Days = days;
            List <Room> rooms = roomManager.GetAllRooms();

            ViewBag.Rooms       = rooms;
            ViewBag.Departments = departmentManager.GetAllDepartments();
            ViewBag.Courses     = courseManager.GetAllCourses();
            return(View());
        }
Пример #5
0
        public ActionResult Allocate()
        {
            if (Session["username"] == null)
            {
                return(RedirectToAction("Login", "Account"));
            }

            ViewBag.Departments = aDepartmentManager.GetAllDepartments();
            ViewBag.Days        = aDayManager.GetAllDays();
            ViewBag.Rooms       = aRoomManager.GetAllRooms();
            return(View());
        }
Пример #6
0
        public ActionResult Allocate()
        {
            ViewBag.deps    = DeptMan.GetAllDepartments();
            ViewBag.days    = DayMan.GetAllDays();
            ViewBag.rooms   = RoomMan.GetAllRooms();
            ViewBag.courses = new List <Course>
            {
                new Course()
                {
                    CourseId = -1, CourseName = "Select a Course"
                }
            };

            return(View());
        }
        public ActionResult Create()

        {
            IEnumerable <Department> departments = aDepartmentManager.GetAllDepartment();

            ViewBag.DeptList = new SelectList(departments, "Id", "Name");

            IEnumerable <Course> courses = new List <Course>();

            ViewBag.CourseList = new SelectList(courses, "Id", "Code");

            IEnumerable <Room> rooms = aRoomManager.GetAllRooms();

            ViewBag.RoomList = new SelectList(rooms, "Id", "RoomNumber");

            IEnumerable <Day> days = aDayManager.GetAllDays();

            ViewBag.DayList = new SelectList(days, "Id", "Name");
            return(View());
        }