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

defined('_WPBOOKINGPRO_EXEC') or die;
class CategoriesController extends ControllerListAlias
{
    public function delete($id = 0)
    {
        return parent::delete($id); // TODO: Change the autogenerated stub
    }
    public function sorting($list_ordering = array())
    {
        $input = Factory::getInput();
        $data = $input->getData();
        $list_ordering = isset($data['list_ordering']) ? $data['list_ordering'] : array();
        $modelCategories = Model::getInstance('categories');
        $modelCategories->sorting($list_ordering);
    }


}
