|
|
@ -147,7 +147,7 @@ namespace Myshipping.Application
|
|
|
|
[NonAction]
|
|
|
|
[NonAction]
|
|
|
|
public async Task<List<FeeCurrencyCacheDto>> CacheFeeCurrency()
|
|
|
|
public async Task<List<FeeCurrencyCacheDto>> CacheFeeCurrency()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var allFeeCurrency = await _repCode.AsQueryable().Filter(null, true).ToListAsync();
|
|
|
|
var allFeeCurrency = await _repCode.AsQueryable().Filter(null, true).Where(x => !x.IsDeleted).ToListAsync();
|
|
|
|
|
|
|
|
|
|
|
|
var cacheFeeCode = allFeeCurrency.Adapt<List<FeeCurrencyCacheDto>>();
|
|
|
|
var cacheFeeCode = allFeeCurrency.Adapt<List<FeeCurrencyCacheDto>>();
|
|
|
|
await _cache.SetTimeoutAsync(CommonConst.CACHE_KEY_FEE_CURRENCY, cacheFeeCode, new TimeSpan(6, 0, 0));
|
|
|
|
await _cache.SetTimeoutAsync(CommonConst.CACHE_KEY_FEE_CURRENCY, cacheFeeCode, new TimeSpan(6, 0, 0));
|
|
|
|