示例#1
0
 public int GetReservationID(int tableID)
 {
     table_DAO = Table_DAO.GetTableDAO();
     try
     {
         return(table_DAO.GetReservationID(tableID));
     }
     catch (Exception e)
     {
         return(999);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 public void CancelOrder()
 {
     table_DAO = Table_DAO.GetTableDAO();
     table_DAO.CancelOrder();
 }