def delete(invoiceId): result = Model.delete(invoiceId=invoiceId) return result
def delete(invoiceId): result = Model.delete(invoiceId=invoiceId) db.session.commit() return result