public IActionResult getById(int id) { var order = orderRepository.getById(id); if (order != null) { var details = detailRepository.getById(id); order.DetailsOrder = details; return(Ok(order)); } return(NotFound()); }