public function ajaxControllerAction(Request $request)
{
$operation = $request->request->get('operation') ? $request->request->get('operation') : $request->query->get('operation');
if (!$operation) {
throw new NotFoundHttpException();
}
return new JsonResponse($this->{$operation}());
}