public int GetReservationID(int tableID) { table_DAO = Table_DAO.GetTableDAO(); try { return(table_DAO.GetReservationID(tableID)); } catch (Exception e) { return(999); } }
public List <Table> GetAllTables() { table_DAO = Table_DAO.GetTableDAO(); try { return(table_DAO.GetAllTables()); } catch (Exception e) { List <Table> tables = new List <Table>(); Table table = new Table(99, 0); tables.Add(table); return(tables); } }
public void CancelOrder() { table_DAO = Table_DAO.GetTableDAO(); table_DAO.CancelOrder(); }