public function actionCategory($categoryId)
 {
     $category = TrainingCategory::findOne($categoryId);
     if (empty($category)) {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
     $params = Yii::$app->request->queryParams;
     $params['categoryId'] = $categoryId;
     $searchModel = new TrainingRepository();
     $dataProvider = $searchModel->search($params);
     return $this->render(['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'categoryName' => $category->name]);
 }