Exemplo n.º 1
0
 public ActionResult GetSliders(JqGridRequest request, string keyword)
 {
   var searchCriteria = new SliderSearchCriteria();
   var result = _sliderReportService.Search(searchCriteria, request.RecordsCount, request.PageIndex);
   var jsonData = new
   {
     total = (result.Count + request.RecordsCount - 1) / request.RecordsCount,
     page = request.PageIndex + 1,
     records = result.Count,
     rows = result.Items
   };
   return Json(jsonData, JsonRequestBehavior.AllowGet);
 }
Exemplo n.º 2
0
 public SearchResult<SliderDTO> Search(SliderSearchCriteria searchCriteria, int pageSize, int pageIndex)
 {
   return _executor.Execute(new GetSliderDTOBySearchCriteriaDbCommand(searchCriteria,pageIndex,pageSize));
 }