public function actionMarkUnread($id)
{
$el = $this->getMessageElement();
$el->marked_as_read = false;
$transaction = \Yii::app()->db->beginTransaction();
try {
$el->save();
$this->updateEvent();
$this->event->audit('event', 'marked unread');
\Yii::app()->user->setFlash('success', '<a href="' . $this->getEventViewUrl() . "\">{$this->event_type->name}</a> marked as unread.");
$transaction->commit();
} catch (\Exception $e) {
$transaction->rollback();
throw $e;
}
$this->redirectAfterAction();
}