示例#1
0
        public IActionResult Multiplication(string firstNumber, string secondNumber)
        {
            if (UtilNumber.IsNumeric(firstNumber) && UtilNumber.IsNumeric(secondNumber))
            {
                var sum = UtilNumber.ConvertToDescimal(firstNumber) * UtilNumber.ConvertToDescimal(secondNumber);
                return(Ok(sum.ToString()));
            }

            return(BadRequest("Invalid input."));
        }