yambroskin

Untitled

Sep 14th, 2017
256
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. }
  10. catch (Exception message)
  11. {
  12. Logger.Log.Error(message);
  13. unitOfWork.Rollback();
  14. }
  15. }
RAW Paste Data Copied