database->withSession($repository->findById($id)); return new SimpleOKResponse(new JsonEntity($record)); } }