def adminDeleteArea(): try: if adminLoginSession() == "admin": areaDAO = AreaDAO() areaId = request.args.get('areaId') areaDAO.deleteArea(areaId) return redirect(url_for('adminViewArea')) else: return adminLogoutSession() except Exception as ex: print(ex)
def adminDeleteArea(): try: areaVO = AreaVO() areaDAO = AreaDAO() areaId = request.args.get('areaId') areaVO.areaId = areaId areaDAO.deleteArea(areaVO) return redirect(url_for('adminViewArea')) except Exception as ex: print(ex)