Example #1
0
        public ActionResult AjaxGet(DataTableAjaxConfig dtConfig, int status = -1, string vipName = "")
        {
            var miles = _dal.GetPagedVips(dtConfig, vipName);

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