Beispiel #1
0
        public async Task <ActionResult <CurrencyQuotation> > GetCurrencyQuotation(string code)
        {
            code = code.ToUpper().Trim();

            if (!_curreciesService.IsCurrencyAbaible(code))
            {
                return(NotFound($@"The currency ""{code}"" is not available at this moment."));
            }

            return(Ok(await _curreciesService.GetCurrencyQuotationAsync(code)));
        }