Exemplo n.º 1
0
 public IPagedList<Batch> Search(BatchSearchModel searchModel)
 {
     return _session.Query<Batch>().OrderByDescending(batch => batch.Id).ToPagedList(searchModel.Page);
 }
Exemplo n.º 2
0
 public ViewResult Index(BatchSearchModel searchModel)
 {
     ViewData["results"] = _batchAdminService.Search(searchModel);
     return View(searchModel);
 }