Beispiel #1
0
        protected override async Task <LambdaProxyResponse> ExecutionFunction(ApiGatewayProxyRequest request)
        {
            var dbContext = new CoffeeContext(_context);
            var coffee    = await dbContext.GetCurrentCoffee();

            return(new LambdaProxyResponse
            {
                statusCode = HttpStatusCode.OK,
                body = SerializerUtil.Serialize(coffee),
            });
        }