Beispiel #1
0
        public ActionResult <decimal?> CalculateByCodes(string baseCode, string targetCode, decimal amount)
        {
            var result = _srv.CalculateByCodes(baseCode, targetCode, amount);

            if (result == null)
            {
                return(NotFound("Currency Rate not found"));
            }
            else
            {
                return(Ok(result));
            }
        }