Beispiel #1
0
        public ActionResult GetContentMenus(JqGridRequest request, string keyword)
        {
            var searchCriteria = new ContentMenuSearchCriteria();
            var result         = _contentMenuReportService.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));
        }
Beispiel #2
0
 public GetContentMenuDTOBySearchCriteriaDbCommand(ContentMenuSearchCriteria criteria, int pageIndex, int pageSize)
 {
     _criteria  = criteria;
     _pageIndex = pageIndex;
     _pageSize  = pageSize;
 }
Beispiel #3
0
 public SearchResult <ContentMenuDTO> Search(ContentMenuSearchCriteria searchCriteria, int pageSize, int pageIndex)
 {
     return(_executor.Execute(new GetContentMenuDTOBySearchCriteriaDbCommand(searchCriteria, pageIndex, pageSize)));
 }