Advertisement
yambroskin

Untitled

Sep 14th, 2017
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. using (var unitOfWork = unitOfWorkManager.Create(string.Empty, true, IsolationLevel.ReadCommitted))
  2. {
  3. try
  4. {
  5. if (client.UpdateGovPurchases())
  6. {
  7. unitOfWork.Commit();
  8. }
  9. else
  10. {
  11. unitOfWork.Rollback();
  12. }
  13. }
  14. catch (Exception message)
  15. {
  16. Logger.Log.Error(message);
  17. unitOfWork.Rollback();
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement