Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. if (PzuObjectCache.Instance.Configuration.IsActive)
  2.                 {
  3.                     T080IViewModel viewModelCached;
  4.  
  5.                     if (PzuObjectCache.Instance.TryGet<T080IViewModel>(key, out viewModelCached) == false)
  6.                     {
  7.                         viewModel.UserName = this.GetUserName();
  8.                         new T080GHelper().SearchCarByValstNumber(viewModel);
  9.                         PzuObjectCache.Instance.Set<T080IViewModel>(key, viewModel, 0);
  10.                     }
  11.                     else
  12.                     {
  13.                         viewModel = viewModelCached;
  14.                     }
  15.                 }
  16.                 else
  17.                 {
  18.                     viewModel.UserName = this.GetUserName();
  19.                     new T080GHelper().SearchCarByValstNumber(viewModel);
  20.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement