Esempio n. 1
0
 public void Update(Receipt receipt)
 {
     ReceiptDao dao = new ReceiptDao();
     using (Transaction tx = new Transaction())
     {
         dao.Save<Receipt>(receipt);
         tx.Commit();
     }
 }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
 public Receipt GetByGuid(Data.Guid receiptGuid)
 {
     ReceiptDao dao = new ReceiptDao();
     return dao.FindByGuid(receiptGuid);
 }