/// <summary> /// SUMMARY /// </summary> /// <param name="input"></param> /// <param name="context"></param> /// <returns></returns> public async Task <APIGatewayProxyResponse> LambdaFunctionHandler(APIGatewayProxyRequest request, ILambdaContext context) { Debug.Untested(); Debug.AssertValid(request); Debug.AssertValid(context); return(await LambdaHelper.ExecuteGetAsync(request, async (IDataStores dataStores) => { Debug.AssertValid(dataStores); return await GetCountries(dataStores); })); }
/// <summary> /// A simple function that takes a string and does a ToUpper /// </summary> /// <param name="input"></param> /// <param name="context"></param> /// <returns></returns> public async Task <APIGatewayProxyResponse> handleRequest(APIGatewayProxyRequest request, ILambdaContext context) { Debug.Untested(); Debug.AssertValid(request); Debug.AssertValid(request.Headers); Debug.AssertValid(context); return(await LambdaHelper.ExecuteGetAsync(request, async (IDataStores dataStores) => { Debug.AssertValid(dataStores); return await GetUserDetails(dataStores, request.Headers); })); }