public static int Add(int UserShowId, decimal amount, int ShowId, int UserId)
        {
            String moduleSettings = ModuleConfig.GetSettings();
            Fpp.Data.PendingRefunds c = new Fpp.Data.PendingRefunds(moduleSettings);

            AppException.LogEvent(string.Format("Refund for UserShow:{0} amount:{1}, Show:{2}, User:{3}", UserShowId, amount, ShowId, UserId));

            return c.Add(UserShowId, ShowId, UserId, amount);
        }
 public static List<PendingRefunds> getAllPending()
 {
     String moduleSettings = ModuleConfig.GetSettings();
     Fpp.Data.PendingRefunds c = new Fpp.Data.PendingRefunds(moduleSettings);
     var list = new List<PendingRefunds>();
     DataSet ds = c.getAllPendingReviews();
     foreach (DataRow row in ds.Tables[0].Rows)
     {
         list.Add(new PendingRefunds(row));
     }
     return list;
 }
 public static void Delete(int id)
 {
     String moduleSettings = ModuleConfig.GetSettings();
     Fpp.Data.PendingRefunds c = new Fpp.Data.PendingRefunds(moduleSettings);
     c.Delete(id);
 }
 public PendingRefunds(DataRow row)
     : base()
 {
     _db = new Fpp.Data.PendingRefunds(ModuleSettings);
     LoadFromRow(row);
 }