class OrderServiceImpl implements OrderService {

    @Override
    public Response getAllOrders(HttpHeaders headers) {
        ArrayList<Order> orders = orderRepository.findAll();
        if (orders != null && !orders.isEmpty()) {
            return new Response<>(1, "Success.", orders);
        } else {
            return new Response<>(0, "No Content.", null);
        }
    }

}