public function save()
 {
     if (!$this->validate()) {
         return false;
     }
     $transaction = Yii::$app->db->beginTransaction();
     try {
         $this->refreshProfile();
         $current = $this->getLocationCurrent();
         $event = $this->getEvent();
         $radius = MessageRecord::RADIUS_UNDER_MILD;
         if ($event->urgent == Event::URGENT_URGENT) {
             $radius = MessageRecord::RADIUS_UNDER_URGENT;
         } elseif ($event->urgent == Event::URGENT_EMERGENCY) {
             $radius = MessageRecord::RADIUS_UNDER_EMERGENCY;
         }
         $numbers = Yii::$app->telecoms->getNumbers($current->latitude, $current->longitude, $radius);
         $newNumbers = MessageRecord::getNewNumbers($event->id, $numbers);
         if (!$newNumbers) {
             throw new Exception("No new numbers found");
         }
         Yii::$app->telecoms->sendMessage($newNumbers, $this);
         MessageRecord::createRecords($event->id, $newNumbers);
         $transaction->commit();
         return true;
     } catch (\yii\db\Exception $e) {
         $this->addError('title', 'fail to create record in database');
     } catch (\yii\base\Exception $e) {
         $this->addError('title', $e->getMessage());
     }
     $transaction->rollBack();
     return false;
 }