yambroskin

Untitled

Sep 14th, 2017
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 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. }
  10. catch (Exception message)
  11. {
  12. Logger.Log.Error(message);
  13. unitOfWork.Rollback();
  14. }
  15. }
Add Comment
Please, Sign In to add comment