예제 #1
0
        public IActionResult GetQuoteCalculationX(string sourse, double valuein, string money)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var result = _quoteService.CalculationX(sourse, valuein, money);

            if (result == 0)
            {
                return(NotFound());
            }

            return(Ok(result));
        }