getParsedBody(); if (empty($data->id)) { throw new BadRequest(); } $this->getRecordService()->moveUp($data->id); return true; } public function postActionMoveDown(Request $request): bool { $data = $request->getParsedBody(); if (empty($data->id)) { throw new BadRequest(); } $this->getRecordService()->moveDown($data->id); return true; } public function getActionListAll(): array { return $this->getRecordService()->listAll(); } }