コード例 #1
0
        public ActionResult <decimal?> GetRateByCodes(string baseCode, string targetCode)
        {
            var result = _srv.GetRateByCodes(baseCode, targetCode);

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