Exemplo n.º 1
0
        public async Task <IActionResult> IsItemAvailable(
            [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)]
            HttpRequest req, ILogger log)
        {
            string productCode = req.Query["productcode"];

            return(new OkObjectResult(await _checkoutService.IsItemAvailable(productCode)));
        }