public function see($ID)
    {
        $member = Member::currentUser();
        if (!$member) {
            return false;
        }

        if ($ID) {
            $notification = InternalNotification::get()
                ->filter([
                    'ID' => $ID,
                    'ToID' => $member->ID
                ])->first();
            if ($notification) {
                if (!$notification->IsSeen) {
                    $notification->IsSeen = true;
                    $notification->write();
                }
                return true;
            }
        }
        return false;
    }
public function see($ID)
    {
        $member = Member::currentUser();
        if (!$member) {
            return false;
        }

        if ($ID) {
            $notification = InternalNotification::get()
                ->filter([
                    'ID' => $ID,
                    'ToID' => $member->ID
                ])->first();
            if ($notification) {
                if (!$notification->IsSeen) {
                    $notification->IsSeen = true;
                    $notification->write();
                }
                return true;
            }
        }
        return false;
    }
public function see ( $ ID ) { $ member = Member :: currentUser ( ) ; if ( ! $ member ) { return false ; } if ( $ ID ) { $ notification = InternalNotification :: get ( ) -> filter ( [ 'ID' => $ ID , 'ToID' => $ member -> ID ] ) -> first ( ) ; if ( $ notification ) { if ( ! $ notification -> IsSeen ) { $ notification -> IsSeen = true ; $ notification -> write ( ) ; } return true ; } } return false ; }
Mark a Notification as seen, accepts a notification ID and returns a
boolean for success or failure.

@param string|int $ID The ID of an InternalNotification for the current
logged in Member
@return boolean true when marked seen otherwise false
Mark a Notification as seen accepts a notification ID and returns a boolean for success or failure .