public SimpleCalculatorController(ISimpleCalculatorService simpleCalcService) { _simpleCalcService = simpleCalcService; }
public APIGatewayProxyResponse Subtract([FromHeader] int x, [FromHeader] int y, [FromServices] ISimpleCalculatorService simpleCalculatorService) { return(new APIGatewayProxyResponse { StatusCode = 200, Body = simpleCalculatorService.Subtract(x, y).ToString() }); }
public double Pi([FromServices] ISimpleCalculatorService simpleCalculatorService) { return(simpleCalculatorService.PI()); }
/// <summary> /// Default constructor that Lambda will invoke. /// </summary> public SimpleCalculator(ISimpleCalculatorService simpleCalculatorService) { this._simpleCalculatorService = simpleCalculatorService; }