public DataSet GetPaymentsDataSet(string where, string orderBy) { PaymentData data = new PaymentData(); DataSet ds = new DataSet(); try { ds = data.GetPaymentDynamicDataSet(where, orderBy); } catch (Exception ex) { log.Write(ex.Message, "GetAllPaymentsDataSet"); throw (ex); } finally { data = null; } return(ds); }