public async Task AddExchangeRateAsync(AddExchangeRate command) { var rate = ExchangeRate.Create(command.FromCurrencyId, command.ToCurrencyId, command.Rate, command.ExternalId.ToString(), false, command.Date); await this.currencyRepository.AddExchangeRateAsync(rate); }
public async Task AddExchangeRateAsync(AddExchangeRate command) { var rate = ExchangeRate.Create(command.FromCurrencyId, command.ToCurrencyId, command.Rate, userIdentityContext.UserId, command.ExternalId, false, command.Date); await this.currencyRepository.AddExchangeRateAsync(rate); }