public IActionResult Get() { var models = currencyService .GetCurrencies() .Select(x => currencyMapper.ToModel(x)) .ToList(); return(Ok(models)); }
public IEnumerable <CurrencyModel> GetCurrencies() => currencyService.GetCurrencies().Select(x => currencyMapper.ToModel(x)).ToList();