Пример #1
0
        public JsonResult ViewRoomAllocationInfo(int deptId)
        {
            AllocateClassRoomManagerGOM  manager   = new AllocateClassRoomManagerGOM();
            List <AllocatedClassroomGOM> Allocated = manager.ViewAllocatedRoomByDeptId(deptId);

            //List<ViewResultGOM> studentList = result.Where(a => a.StudentId == studentId).ToList();
            return(Json(Allocated));
        }
Пример #2
0
        public ActionResult AllocateClassRoomGom(ClassRoomGOM classRoomGom)
        {
            AllocateClassRoomManagerGOM allocateClass = new AllocateClassRoomManagerGOM();
            string msg = allocateClass.InsertAllocation(classRoomGom);

            ViewBag.msg = msg;



            ViewDeptManagerGOM aViewDeptManagerGom = new ViewDeptManagerGOM();

            ViewBag.departments = aViewDeptManagerGom.Show();



            ViewRoomDayManagerGOM rd        = new ViewRoomDayManagerGOM();
            List <ClassRoomGOM>   classRoom = rd.ShowClassroom();

            ViewBag.classRoom = classRoom;



            List <ClassRoomGOM> day = rd.ShowDay();

            ViewBag.day = day;



            List <ClassRoomGOM> nullList = new List <ClassRoomGOM>();

            ViewBag.nullList = nullList;



            return(View());
        }