public ActionResult Index(int?ClassRoomID, int?DepartmentID, string ClassName) { ClassRoomService classRoom = new ClassRoomService(); int Pagenumber = 1; IPagedList <ClassRoom> classroom = classRoom.GetClassRooms(ClassRoomID, DepartmentID, ClassName, Pagenumber, 15); ViewBag.ClassRoomID = ClassRoomID; ViewBag.ClassName = ClassName; ViewBag.PageCurrent = Pagenumber; return(View(classroom)); }
public PartialViewResult LoadListClassRoom(string ClassName, int?PageCurrent) { ClassRoomService service = new ClassRoomService(); int pageNumber = PageCurrent ?? 1; IPagedList <ClassRoom> classRooms = service.GetClassRooms(ClassName , pageNumber , 10 ); ViewBag.ClassName = ClassName; ViewBag.PageCurrent = PageCurrent; return(PartialView("_List", classRooms)); }
public ActionResult Test(string ClassName, int?PageCurrent) { ClassRoomService service = new ClassRoomService(); int pageNumber = PageCurrent ?? 1; IPagedList <ClassRoom> students = service.GetClassRooms(ClassName , pageNumber , 10 ); ViewBag.ClassName = ClassName; ViewBag.PageCurrent = PageCurrent; return(View(students)); }