mark all read

This commit is contained in:
Yuri Kuznetsov
2014-08-04 12:19:09 +03:00
parent d4943e4d1c
commit e6948aba2e
6 changed files with 44 additions and 7 deletions
@@ -54,7 +54,13 @@ class Notification extends \Espo\Core\Controllers\Base
public function actionNotReadCount()
{
$userId = $this->getUser()->id;
return $this->getService('Notification')->getNotReadCount($userId);
return $this->getService('Notification')->getNotReadCount($userId);
}
public function actionMarkAllRead($params, $data, $request)
{
$userId = $this->getUser()->id;
return $this->getService('Notification')->markAllRead($userId);
}
}