public function delete() { return $this->request->isAjax() ? JsonResponse::methodNotAllowed() : Response::methodNotAllowed(); }