Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (PzuObjectCache.Instance.Configuration.IsActive)
- {
- T080IViewModel viewModelCached;
- if (PzuObjectCache.Instance.TryGet<T080IViewModel>(key, out viewModelCached) == false)
- {
- viewModel.UserName = this.GetUserName();
- new T080GHelper().SearchCarByValstNumber(viewModel);
- PzuObjectCache.Instance.Set<T080IViewModel>(key, viewModel, 0);
- }
- else
- {
- viewModel = viewModelCached;
- }
- }
- else
- {
- viewModel.UserName = this.GetUserName();
- new T080GHelper().SearchCarByValstNumber(viewModel);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement