Beispiel #1
0
        private void BtnDelete_Click(object sender, RoutedEventArgs e)
        {
            int selectedId = (DriverGrid.SelectedItem as DriverVM).Id;
            var responce   = DriverLogic.Delete(new Common.ViewModel.DriverVM
            {
                Id = selectedId,
            });

            if (responce.IsCompleted == true)
            {
                DriverGrid.ItemsSource = DriverLogic.List().Object;
            }
        }