<?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 ServiceController extends ControllerFormAlias
{
    public $view="service";
    public function delete($id = 0)
    {
        return parent::delete($id); // TODO: Change the autogenerated stub
    }
    public function ajax_get_list_employee()
    {
        $input = Factory::getInput();
        $service_id = $input->getInt('service_id', 0);
        $modelService = Model::getInstance('service');
        $list_employee = $modelService->getListEmployee($service_id);
        return $list_employee;
    }

}
