function execute()
 {
     $model = new connectionUserMessageModel();
     $user = ConnectionHelper::userLogin();
     $message = $model->getUserMessage($user['id'], Request::post('id'));
     if ($message) {
         $model->setState($message['id'], 'unread');
         return 'success';
     }
     return 'error';
 }
 function execute()
 {
     $model = new connectionUserMessageModel();
     $user = ConnectionHelper::userLogin();
     $message = $model->getUserMessage($user['id'], Request::get('message_id'));
     if (!$message) {
         $this->showNotFound();
         return;
     }
     if ($message['type'] == 'inbox') {
         $model->setState($message['id'], 'readed');
     }
     return array('message' => $message);
 }