public static List <NhanVienInfo> GetByPage(FilterObject[] filterObjects, OrderObject[] orderObjects, int pageNum, int pageSize, ref int pageCount, ref int totalRowCount) { if (Cache && (filterObjects == null || filterObjects.Length == 0)) { List <NhanVienInfo> list = GetAll(); totalRowCount = list.Count; return(PagingHelper.GetCollection <NhanVienInfo>(list, Comparison(orderObjects), pageNum, pageSize, ref pageCount)); } return(GetByPage("*", filterObjects, orderObjects, pageNum, pageSize, ref pageCount, ref totalRowCount)); }