public IActionResult GetRates(Guid rateid)
        {
            var rates = _rates.GetRates(rateid);

            if (rates != null)
            {
                return(Ok(rates));
            }
            return(NotFound($"Rates with id: {rateid} was not found"));
        }
        public List <Deal> ConvertAmounts(List <Deal> deals, Currency targetCcy)
        {
            var rateCollection = rates.GetRates(targetCcy);

            if (rateCollection == null)
            {
                return(deals);
            }
            CalculateAmounts(deals, rateCollection);

            return(deals);
        }