public ActionResult SearchBookRecordList(SearchBookRecordModel search, [DefaultValue(1)]int pageIndex) { search.StudentId = LoginUserManager.CurrLoginUser.StudentId; var model = StudyBLL.GetBookRecordListByStudentId(search.StudentId, search.BeginDate, search.EndDate, search.IsWaiting, search.IsOnline, search.IsNotRate, search.IsUnBook, new Paging() { PageIndex = pageIndex, PageSize = 5 }); Session["SearchBookRecordModel"] = search; return PartialView("_List", model); }
public ActionResult Index() { var model = new SearchBookRecordModel() { StudentId = LoginUserManager.CurrLoginUser.StudentId, BeginDate = DateTime.Now.AddDays(-10), EndDate = DateTime.Now.AddDays(5) }; return View(model); }