public PaymentCollection GetAllPaymentsCollection() { PaymentData data = new PaymentData(); PaymentCollection col = new PaymentCollection(); try { col = data.GetAllPaymentCollection(); } catch (Exception ex) { log.Write(ex.Message, "GetAllPaymentsCollection"); throw (ex); } finally { data = null; } return(col); }