public function updateMultiple()
 {
     if ($this->params()->advertisement_ids) {
         $ids = array_map(function ($a) {
             return (int) $a;
         }, $this->params()->advertisement_ids);
     } else {
         $this->notice('No advertisement selected');
         $this->redirectTo($this->advertisementsPath());
         return;
     }
     if ($this->params()->do_delete) {
         Advertisement::destroyAll(['id' => $ids]);
     } elseif ($this->params()->do_reset_hit_count) {
         Advertisement::reset_hit_count($ids);
     }
     $this->notice('Advertisements updated');
     $this->redirectTo($this->advertisementsPath());
 }