public PaymentCollection GetPaymentsCollection(string where, string orderby) { PaymentData data = new PaymentData(); PaymentCollection col = new PaymentCollection(); try { col = data.GetAllPaymentDynamicCollection(where, orderby); } catch (Exception ex) { log.Write(ex.Message, "GetPaymentsCollection"); throw (ex); } finally { data = null; } return(col); }
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); }