|
|
|
@ -147,7 +147,7 @@ namespace Myshipping.Application
|
|
|
|
|
[NonAction]
|
|
|
|
|
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>>();
|
|
|
|
|
await _cache.SetTimeoutAsync(CommonConst.CACHE_KEY_FEE_CURRENCY, cacheFeeCode, new TimeSpan(6, 0, 0));
|
|
|
|
|