Пример #1
0
        public JsonResult Table(dtParam param)
        {
            dtCustomerInd res = new dtCustomerInd();

            res.data            = res.GetData(param, db.CustomerInds.AsNoTracking());
            res.draw            = param.Draw;
            res.recordsTotal    = db.CustomerInds.AsNoTracking().Count();
            res.recordsFiltered = res.Count(param, db.CustomerInds.AsNoTracking());
            return(Json(res));
        }
Пример #2
0
        public JsonResult CMogilev(dtParam param)
        {
            var           query = db.CustomerInds.AsNoTracking().Where(cus => cus.Address.Contains("могил"));
            dtCustomerInd res   = new dtCustomerInd();

            res.data            = res.GetData(param, query);
            res.draw            = param.Draw;
            res.recordsTotal    = db.CustomerInds.AsNoTracking().Count();
            res.recordsFiltered = res.Count(param, query);
            return(Json(res));
        }