public CalcResponse ExecuteUnaryOperation(UnaryCalcRequest request) { var command = CreateCommand(request.CommandType, request.Operand); return(new CalcResponse() { Result = Run(new Command[] { command }) }); }
public IActionResult UnariOperation([FromQuery] UnaryCalcRequest request) { return(Ok(_pangoCalculator.ExecuteUnaryOperation(request))); }