public static async Task <IActionResult> Run( [HttpTrigger(AuthorizationLevel.Function, "get", Route = "orders")] HttpRequest req, [Inject] IOrderingService orderingService, ExecutionContext context, ILogger log) { log.LogInformation("GetOrders function processed a request."); await orderingService.Init(context); var orders = await orderingService.GetOrderAsync(); return(new OkObjectResult(orders)); }