public static object GetDealInternalByProcessDate(int jtStartIndex, int jtPageSize) { try { List <FIDealModel> trns = DealUIP.GetDealInternalByProcessDate(SessionInfo); return(new { Result = "OK", Records = jtPageSize > 0 ? trns.Skip(jtStartIndex).Take(jtPageSize).ToList() : trns, TotalRecordCount = trns.Count }); } catch (Exception ex) { return(new { Result = "ERROR", Message = ex.Message }); } }