public ActionResult <IEnumerable <KeyValuePair <string, decimal> > > GetRate(string code, DateTime date)
        {
            _logger.LogInformation("call GetRate method with code {code} and date {date}", code, date.ToString("yyyy-MM-dd"));
            if (String.IsNullOrEmpty(code))
            {
                return(BadRequest());
            }
            var serviceCallResult = _currencyManager.GetExchangeRate(code.ToUpper(), date)
                                    .ToDictionary(x => x.Key, x => x.Value);

            return(serviceCallResult);
        }