public ActionResult LoadDanhSachNguonDen() { int total; var list = _dmNguonDenBll.SelectAll(); var rs = new ResultService(true, "", 200, new { total = list.Count, data = list }); return Json(rs); }
public ActionResult LoadDanhSach(int page, int pageSize, SortGrid sort, List<FilterableGrid> filterFields) { int total; var dic = CommonFuntions.GenQuerySortAndWhere<DMNgheNghiepDTO>(sort, filterFields); var list = dmNgheNghiepBll.SelectPagingList(dic["soft"], dic["where"], page, pageSize, out total); var rs = new ResultService(true, "", 200, new { total, data = list }); return Json(rs); }