public function changeStatus(IndexListener $listener, $id)
    {
        $model = $this->repository->find($id);
        if (is_null($model)) {
            return $listener->changeStatusFailed();
        }
        $model->active = $model->active ? 0 : 1;
        $model->save();
        return $listener->changeStatusSuccess();
    }