public function deleteAction(Page $page)
    {
        if ($page->isDeleted()) {
            $this->hardDelete($page);
        } else {
            $this->softDelete($page);
        }

        $this->getEntityManager()->flush();

        return $this->createJsonResponse(null, 204);
    }