Ejemplo n.º 1
0
        public ActionResult AjaxGet(DataTableAjaxConfig dtConfig)
        {
            var miles = _menuDal.GetPagedList(dtConfig);

            return(Json(new DataTableAjaxResult
            {
                draw = dtConfig.draw,
                recordsFiltered = dtConfig.recordCount,
                recordsTotal = dtConfig.recordCount,
                data = miles
            }, JsonRequestBehavior.AllowGet));
        }