public function actionUpdate($name) {
        /** @var \jarrus90\User\models\Role|\jarrus90\User\models\Permission $model */
        $item = $this->getItem($name);
        $model = \Yii::createObject([
                    'class' => $this->modelClass,
                    'scenario' => 'update',
                    'item' => $item,
        ]);

        $this->performAjaxValidation($model);

        if ($model->load(\Yii::$app->request->post()) && $model->save()) {
            return $this->redirect(['index']);
        }

        return $this->render('update', [
                    'model' => $model,
        ]);
    }