日期:2014-05-17 浏览次数:20527 次
public ActionResult StudentList(string theGrade,
string theMajor, string theName, string theNo, int page = 1)
{
AllStudentListModel viewModel = new AllStudentListModel
{
AllStudent = businessLogic.GetAllStudentInfo(theGrade, theMajor, theName, theNo)
.Skip((page - 1) * pageSize).Take(pageSize),
pageInfo = new PagingModel
{
CurrentPage = page,
ItemsPerPage = pageSize,
TotalItems = businessLogic.GetAllStudentInfo(theGrade, theMajor, theName, theNo).Count()
}
};
return View(viewModel);
}