} // end addReports public static List <ReportsDO> deleteReports(List <ReportsDO> rList, CPbusinessLayer bslyr) { // probably used infrequently // currently deletes CSV reports from the reports list // however it does not delete in the database // so do that first string[] reportsToDelete = new string[6] { "CSV1", "CSV2", "CSV3", "CSV4", "CSV5", "CSV6" }; for (int j = 0; j < 6; j++) { bslyr.deleteReport(reportsToDelete[j]); foreach (ReportsDO rr in rList) { if (rr.ReportID == reportsToDelete[j]) { rr.Delete(); } } // end foreach loop } // end for j loop return(rList); } // end deleteReports