/** * @return Response */ public function delete($id) { $organization = $this->organizationRepository->find($id); if (is_null($organization)) { return new Response(null, Response::HTTP_NOT_FOUND); } $this->service->delete($organization); return new Response(null, Response::HTTP_NO_CONTENT); }