private void pretraga(object obj) { Uposlenik p = DefaultPodaci.nadjiUposlenika(imePrezimeID); if (p != null) { uposlenici.Clear(); uposlenici.Add(p); } }
public AzuriranjeUposlenikaViewModel(PretragaUposlenikaViewModel v) { navigationService = new NavigationService(); azurirajBtn = new RelayCommand <object>(AzurirajAsync); ime = v.odabrani._ime; prezime = v.odabrani._prezime; datumRodjenja = v.odabrani._datumRodjenja; datumZaposlenja = v.odabrani._datumZaposlenja; username = v.odabrani.username; password = v.odabrani.password; original = DefaultPodaci.nadjiUposlenika(ime, prezime, datumRodjenja, datumZaposlenja); //dodati ID }