public IActionResult GetOrders() { var orderEntities = _orderInfoRepository.GetOrders(); if (orderEntities == null) { return(StatusCode(500, "The order table is empty")); } return(Ok(orderEntities)); }