public IActionResult GetCompletedOrderByRubbishId(int rubbishId) { var completedOrder = _ordersRepository.GetCompletedOrderByRubbishId(rubbishId); if (completedOrder != null) { return(Ok(completedOrder)); } return(NotFound("No completed order could be found.")); }