| | |
| | | var vm_list = MemoryCacheHelper.GetSet(cacheKey, () => |
| | | { |
| | | var all = new Service.SysUnitValue().GetByTypeID(typeId); |
| | | Service.SysUnitValue.PublishCache(cacheKey); |
| | | var vmList = all?.Select(x => new SysUnitValueStdDto(x)).ToList(); |
| | | return vmList; |
| | | }, CacheHelper.CacheLevel5); |
| | |
| | | var vm_list = MemoryCacheHelper.GetSet(cacheKey, () => |
| | | { |
| | | var all = new Service.SysUnitValue().GetByTypeCode(typeCode); |
| | | Service.SysUnitValue.PublishCache(cacheKey); |
| | | var vmList = all?.Select(x => new SysUnitValueStdDto(x)).ToList(); |
| | | return vmList; |
| | | }, CacheHelper.CacheLevel5); |