예제 #1
0
 public void Add(BillingHistory history)
 {
     BillingHistoryDao dao = new BillingHistoryDao();
     using (Transaction tx = new Transaction())
     {
         dao.Save<BillingHistory>(history);
         tx.Commit();
     }
 }
예제 #2
0
        public void AddHistory(Data.Guid subscriptionId, String paypalProfileId, String transactionId, String transactionType, Double amount, String description)
        {
            BillingHistory history = new BillingHistory();
            history.SubscriptionId = subscriptionId.Value;
            history.PaypalProfileId = paypalProfileId;
            history.TxAmount = amount;
            history.TxDate = UtcDateTime.Now;
            history.TxDescription = description;
            history.TxId = transactionId;
            history.TxType = transactionType;

            Add(history);
        }