public async Task <IActionResult> GetInventoryByProduct(int id) { Logger?.LogDebug("{0} has been invoked", nameof(GetInventoryByProduct)); // Get response from business logic var response = await ProductionBusinessObject.GetInventoryByProduct(id); // Return as http response return(response.ToHttpResponse()); }