/**
  * Lists all Task models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new TaskSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     $dataProvider->setSort(['defaultOrder' => ['created_at' => SORT_DESC]]);
     $searchModelTaskDefined = new TaskDefinedSearch();
     $dataProviderTaskDefined = $searchModelTaskDefined->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'searchModelTaskDefined' => $searchModelTaskDefined, 'dataProviderTaskDefined' => $dataProviderTaskDefined]);
 }
 /**
  * Lists all TaskDefined models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new TaskDefinedSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }