예제 #1
0
        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);
        }
예제 #2
0
 public ActionResult Index()
 {
     var model = new SearchBookRecordModel()
     {
         StudentId = LoginUserManager.CurrLoginUser.StudentId,
         BeginDate = DateTime.Now.AddDays(-10),
         EndDate = DateTime.Now.AddDays(5)
     };
     return View(model);
 }