示例#1
0
        public IActionResult GetResult(string operand1, int operation, string operand2)
        {
            var formula = new LinkedList <string>();

            formula.AddLast(operand1);
            formula.AddLast(operation.ToString());
            formula.AddLast(operand2);
            return(Ok(CalcService.GetTwoArgumentResult(formula)));
        }