public async Task <ActionResult <double> > Exchange([FromQuery] ExchangeQuery query) { var result = await exchangeService.ExchangeAsync(query.FromCurrencyCode, query.ToCurrencyCode, query.Amount); return(Ok(result)); }
public async Task <ActionResult <double> > Exchange([FromQuery] ExchangeQuery query) { var result = await exchangeService.ExchangeAsync(query.FromCurrencyCode, query.ToCurrencyCode, query.Amount); return(Ok(result)); }