<?php
namespace WpBookingEventAdmin\app\controllers;
use WpBookingEvent\Factory;
use WpBookingEvent\Mvc\Controller\Controller;
use WpBookingEvent\Mvc\Controller\ControllerBackend as ControllerFormAlias;
use WpBookingEvent\Mvc\Model\Model;

defined('_WPBOOKINGEVENT_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();
        $order_id = $input->getInt('order_id', 0);
        $order_status_id = $input->getInt('order_status_id', 0);
        $modelOrder = Model::getInstance('order');
        $order = $modelOrder->change_order_status($order_id, $order_status_id);
        return $order;
    }

}
