public CalcResponse ExecuteUnaryOperation(UnaryCalcRequest request)
        {
            var command = CreateCommand(request.CommandType, request.Operand);

            return(new CalcResponse()
            {
                Result = Run(new Command[] { command })
            });
        }
Esempio n. 2
0
 public IActionResult UnariOperation([FromQuery] UnaryCalcRequest request)
 {
     return(Ok(_pangoCalculator.ExecuteUnaryOperation(request)));
 }