public async Task <IActionResult> CreateOrderAsync([FromBody] OrderRequest value) { Logger?.LogDebug("{0} has been invoked", nameof(CreateOrderAsync)); // Get response from business logic var response = await SalesService.CreateOrderAsync(value.GetOrder(), value.GetOrderDetails().ToArray()); // Return as http response return(response.ToHttpResponse()); }