private void buttonDeleteChassis_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in dataGridViewDisplayChassis.SelectedRows) { int id = Convert.ToInt32(row.Cells[0].Value); _carService.DeleteChassis(id); } // reload to view changes FormDisplayChassis_Load(sender, e); }
public void DeleteChassis(int id) { _api.DeleteChassis(id); }