public void Update(Receipt receipt) { ReceiptDao dao = new ReceiptDao(); using (Transaction tx = new Transaction()) { dao.Save<Receipt>(receipt); tx.Commit(); } }
public void Issue(Receipt receipt) { receipt.Processed = DateTime.MaxValue; receipt.PaidDeveloperOn = DateTime.MaxValue; ReceiptDao dao = new ReceiptDao(); using (Transaction tx = new Transaction()) { dao.Save<Receipt>(receipt); tx.Commit(); } }
public Receipt GetByGuid(Data.Guid receiptGuid) { ReceiptDao dao = new ReceiptDao(); return dao.FindByGuid(receiptGuid); }