Exemple #1
0
        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);
        }
Exemple #2
0
 public void DeleteOperation(int id)
 {
     _api.DeleteOperation(id);
 }