コード例 #1
0
        public async Task UpdateExchangeRateAsync(Guid id, ExchangeRateUpdateRequestDto input)
        {
            var currency = await _repository.GetAsync(id);

            currency.UpdateExchangeRate(input.ExchangeRate);

            await _repository.UpdateAsync(currency);
        }
コード例 #2
0
 public Task UpdateExchangeRateAsync(Guid id, ExchangeRateUpdateRequestDto input)
 {
     return(_service.UpdateExchangeRateAsync(id, input));
 }