/**
  * Lists all Varietals models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new VarietalsSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     $pager = new \yii\data\Pagination(['pageSize' => 50]);
     $dataProvider->setPagination($pager);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
 /**
  * Lists all Varietals models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new VarietalsSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }