public function actionTasksUpdate()
 {
     if (isset($_POST['task_id'])) {
         $tasks = Task::findAll($_POST['task_id']);
         foreach ($tasks as $t) {
             /**
              * @var Task $t
              */
             $action_status = array('Enable' => TaskInterface::TASK_STATUS_ACTIVE, 'Disable' => TaskInterface::TASK_STATUS_INACTIVE, 'Delete' => TaskInterface::TASK_STATUS_DELETED);
             $t->setStatus($action_status[$_POST['action']]);
             $t->save();
         }
     }
 }