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