private void TableLoadBtn_Click(object sender, EventArgs e) { int tableId = Convert.ToInt32(this.TableIdTB.Text); //MessageBox.Show(""+tableId); Table table = tr.GetTable(tableId); if (table == null) { MessageBox.Show("Invalid ID"); } else { this.TableNosTB.Text = table.NumberOfSeats + ""; this.TableStatusTB.Text = table.Status + ""; this.TableRefreshBtn.Enabled = true; this.TableLoadBtn.Enabled = false; this.TableInsertBtn.Enabled = false; this.TableUpdateBtn.Enabled = true; this.TableDeleteBtn.Enabled = true; this.TableIdTB.Enabled = false; } }
public ActionResult Delete(int id) { return(PartialView("_Delete", TableRepo.GetTable(id))); }
public ActionResult Edit(int id) { return(PartialView("_Edit", TableRepo.GetTable(id))); }