private void RemovePhysicalPersonClientButton_OnClick(object sender, RoutedEventArgs e) { using (var repo = new PhysicalPersonClientRepository()) { repo.RemoveClient(SelectedPhysicalPersonClient); repo.Save(); repo.Update(SelectedPhysicalPersonClient); } PhysicalPersonClients.Remove(SelectedPhysicalPersonClient); }