<?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 VendorController extends ControllerFormAlias
{
    public $view="vendor";
    public function delete($id = 0)
    {
        return parent::delete($id); // TODO: Change the autogenerated stub
    }

    public function ajax_get_list_category() {
        $input = Factory::getInput();
        $data = $input->getData();
        $user_id = isset($data['user_id'])?$data['user_id']:'';
        $modelVendor = Model::getInstance('vendor');
        $list_category_id = $modelVendor->getListCategoryByUserID($user_id);
        return $list_category_id;
    }
}
