Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (var unitOfWork = unitOfWorkManager.Create(string.Empty, true, IsolationLevel.ReadCommitted))
- {
- try
- {
- if (client.UpdateGovPurchases())
- {
- unitOfWork.Commit();
- }
- else
- {
- unitOfWork.Rollback();
- }
- }
- catch (Exception message)
- {
- Logger.Log.Error(message);
- unitOfWork.Rollback();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement