public APIGatewayProxyResponse Subtract([FromHeader] int x, [FromHeader] int y, [FromServices] ISimpleCalculatorService simpleCalculatorService) { return(new APIGatewayProxyResponse { StatusCode = 200, Body = simpleCalculatorService.Subtract(x, y).ToString() }); }
public IHttpActionResult Subtract(int start, int amount) { int result = _simpleCalcService.Subtract(start, amount); return(Ok(result)); }