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