public void Add(BillingHistory history) { BillingHistoryDao dao = new BillingHistoryDao(); using (Transaction tx = new Transaction()) { dao.Save<BillingHistory>(history); tx.Commit(); } }
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); }