<?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 CategoryController extends ControllerFormAlias
{
    public $view="category";
    public function delete($id = 0)
    {
        return parent::delete($id); // TODO: Change the autogenerated stub
    }
    public  function ajax_get_user_id() {
        $input = Factory::getInput();
        $data = $input->getData();
        $category_id = isset($data['category_id'])?$data['category_id']:'';
        $modelCategory = Model::getInstance('category');
        $user_id = $modelCategory->getUserIDByCategory($category_id);
        return $user_id;
    }

}
