public function removeTaskNgAction($task_id)
 {
     $em = $this->getDoctrine()->getManager();
     $response = new Response(json_encode(array("result" => Task::removeTaskById($em, $task_id))));
     $response->headers->set('Content-Type', 'application/json');
     return $response;
 }