def validationActionPointID(ap_id):
    if not ActionPointDao.getActionPointByID(ap_id):
        raise NotFoundException("Unable to find action point with given id")
    else:
        return True
def getActionPointByID(ap_id):
    validationActionPointID(ap_id)
    return ActionPointDao.getActionPointByID(ap_id)
def deleteActionPoint(ap_id):
    validationActionPointID(ap_id)
    ActionPointDao.deleteActionPoint(ap_id)
def updateActionPoint(ap_id, name):
    validationActionPointID(ap_id)
    validationActionPointName(name)
    ActionPointDao.updateActionPoint(ap_id, name)
def createActionPoint(name):
    validationActionPointName(name)
    ActionPointDao.createNewActionPoint(name)
def getListActionPoint():
    return ActionPointDao.getAllActionPoints()