Advertisement
yambroskin

Untitled

Sep 14th, 2017
464
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement