public function addToWishlist($wishlist_action_model)
    {
        $errors = $this->error();

        if (empty($errors)) {
            $result = $wishlist_action_model->add($this->getSubmitted());
        } else {
            $result = array(
                'redirect' => '',
                'severity' => 'warning',
                'message' => $this->format($errors)
            );
        }

        if ($this->isAjax()) {
            $this->outputJson($result);
        }

        $this->redirect($result['redirect'], $result['message'], $result['severity']);
    }