/** * @Route("/deleteInterview") * @Method({"POST"}) * * @return array */ public function deleteInterview(Request $request) { if (!$this->isAdmin()) { return ['error' => true, 'errorText' => 'accessDenied']; } $id = $request->request->get('id'); $result = $this->interviewservice->deleteInterview($id); return $result; }