Beispiel #1
0
        //cập nhật bàn
        public void updateTable(coffeeTable table)
        {
            db = new CitiZoneDataContext();
            coffeeTable tab = new coffeeTable();

            tab = table;
            tab = db.coffeeTables.Single(x => x.tableID == table.tableID);
            setUpdateTable(tab, table);
            db.SubmitChanges();
        }
Beispiel #2
0
        //lấy bàn theo id
        public coffeeTable getTableByID(int id)
        {
            coffeeTable table = new coffeeTable();

            tables.ForEach(tbl => {
                if (tbl.tableID == id)
                {
                    table = tbl;
                }
            });
            return(table);
        }
Beispiel #3
0
 public void setUpdateTable(coffeeTable tbDB, coffeeTable tbUpdate)
 {
     tbDB.status = tbUpdate.status;
 }
 //cập nhật phòng
 public void updateTable(coffeeTable table)
 {
     tableDAO.updateTable(table);
 }