def createSection(self, boardId, sectionTitle): section = Section(title=sectionTitle) section.save() sectionId = section.id board = self.__getBoardById(boardId) board.addSectionId(sectionId) return sectionId