<?php
namespace WpBookingProAdmin\app\controllers;
use WpBookingPro\Factory;
use WpBookingPro\Mvc\Controller\Controller;
use WpBookingPro\Mvc\Controller\ControllerForm as ControllerFormAlias;
use WpBookingPro\Mvc\Model\Model;

defined('_WPBOOKINGPRO_EXEC') or die;
class AppointmentController extends ControllerFormAlias
{
    public $view="appointment";
    public function delete($id = 0)
    {
        return parent::delete($id); // TODO: Change the autogenerated stub
    }
    public function ajax_change_order_status()
    {
        $input = Factory::getInput();
        $data = $input->getData();
        $modelOrder = Model::getInstance('order');
        $order = $modelOrder->change_order_status($data);
        return $order;
    }

}
