public IActionResult GetProductOrderById(int id) { var productOrder = _repo.GetProductOrderById(id); if (productOrder == null) { return(NotFound("No productOrder with that Id was found")); } return(Ok(productOrder)); }