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