private async void BtnDelete_Click(object sender, RoutedEventArgs e) { try { await viewModel.Delete(moviesList.SelectedItems); } catch (Exception ex) { MessageBox.Show(ex.Message, "Message", MessageBoxButton.OK, MessageBoxImage.Error); } }
private void DeleteButt_Click(object sender, RoutedEventArgs e) { viewmodel.Delete(); }