private async Task <(decimal, decimal)> GetBaseRateValuesAsync(BaseRateCode currentBaseRateCode, BaseRateCode newBaseRateCode)
        {
            var newBaseRateValue = await _baseRateService.GetBaseRateValue(newBaseRateCode.ToString());

            var currentBaseRateValue = currentBaseRateCode == newBaseRateCode
                ? newBaseRateValue
                : await _baseRateService.GetBaseRateValue(currentBaseRateCode.ToString());

            return(currentBaseRateValue, newBaseRateValue);
        }
示例#2
0
 private string GetBaseRateCacheKey(BaseRateCode baseRateCode)
 {
     return(_baseRateValueCacheKeyPrefix + baseRateCode.ToString());
 }