def pembayaranDetail(id): if request.method == 'GET': return DbController.showpembayaran(id) elif request.method == 'PUT': return DbController.updatepembayaran(id) elif request.method == 'DELETE': return DbController.deletepembayaran(id)
def usersDetail(id): if request.method == 'GET': return DbController.show(id) elif request.method == 'PUT': return DbController.updateuser(id) elif request.method == 'DELETE': return DbController.deleteuser(id)
def ticketDetail(id): if request.method == 'POST': return DbController.buyticket(id) elif request.method == 'GET': return DbController.showticket(id) elif request.method == 'PUT': return DbController.updateticket(id) elif request.method == 'DELETE': return DbController.deleteticket(id)
def login(): return DbController.login()
def users(): if request.method == 'GET': return DbController.index() else: return DbController.adduser()
def pembayaran(): if request.method == 'GET': return DbController.indexpembayaran() else: return DbController.detailpembayaran()
def ticketuser(id): return DbController.showticketusers(id)
def ticket(): return DbController.indextiket()