public IActionResult GetOrder(int orderId) { var order = _orderInfoRepository.GetOrder(orderId); if (order == null) { return(StatusCode(500, "The order is empty!")); } return(Ok(order)); }