public static object GetPCEReport(SessionInfo sessioninfo, string strReportDate, string strCtpy, string strLimit, string strSource, string strStatus, int jtStartIndex, int jtPageSize) { try { ReportBusiness _reportBusiness = new ReportBusiness(); //Get data from database List<LimitCheckModel> limits = _reportBusiness.GetPCEReport(sessioninfo, strReportDate, strCtpy, strLimit, strSource, strStatus); //Return result to jTable return new { Result = "OK", Records = jtPageSize > 0 ? limits.Skip(jtStartIndex).Take(jtPageSize).ToList() : limits, TotalRecordCount = limits.Count }; } catch (BusinessWorkflowsException bex) { return new { Result = "ERROR", Message = bex.Message }; } catch (Exception ex) { return new { Result = "ERROR", Message = ex.Message }; } }
public static List<LimitCheckModel> GetPCEExport(SessionInfo sessioninfo, string strReportDate, string strCtpy, string strLimit, string strSource, string strStatus) { ReportBusiness _reportBusiness = new ReportBusiness(); List<LimitCheckModel> limits = _reportBusiness.GetPCEReport(sessioninfo, strReportDate, strCtpy, strLimit, strSource, strStatus); return limits; }