Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Using scope As New TransactionScope()
- Dim p As New Payment()
- 'Poulate the payment information
- Dim ps = ObjectFactory.GetObject(Of IPaymentService)()
- ps.ProcessPayment(p)
- Dim r As New Receipt()
- 'Populate the receipt
- Dim rs = ObjectFactory.GetObject(Of IReceiptService)()
- rs.Save(r)
- Dim o As New Order()
- 'Populate the order
- Dim os = ObjectFactory.GetObject(Of IOrderService)()
- os.Save(o)
- scope.Complete()
- End Using
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement