private void btnDeleteTheater_Click(object sender, EventArgs e) { int id = (int)dgvTheater.CurrentRow.Cells[0].Value; _theaterService.Delete(id); GetAllTheater(); }
// DELETE: api/Theaters/5 public void Delete(int id) { _theaterService.Delete(id); }