private void btnSave_Click(object sender, RoutedEventArgs e) { CurrentServis.Autos = new ObservableCollection <Auto>(Autos.Where(x => x.Selektovan)); if (CurrentServis.ID == 0) { CurrentServis.dodajServis(); } else { CurrentServis.azurirajServis(); } ServisCreated(CurrentServis); this.Close(); }