public JsonResult LoadSalient(int page, int pageSize) { SalientFeatureDAO dao = new SalientFeatureDAO(); var data = dao.LoadListSalient().Skip((page - 1) * pageSize).Take(pageSize); int totalRow = dao.LoadListSalient().Count(); return(Json(new { data = data, totalRowSalient = totalRow, }, JsonRequestBehavior.AllowGet)); }
public JsonResult LoadListSalient() { SalientFeatureDAO dao = new SalientFeatureDAO(); var data = dao.LoadListSalient().Where(x => x.Status == true); return(Json(new { data = data }, JsonRequestBehavior.AllowGet)); }