public static LogBook LogBookInstance() { if (_instance == null) { lock (obj) if (_instance == null) { _instance = new LogBook(); } } return(_instance); }
public List <Vozilo> VratiVozila(Vlasnik v) { return(LogBook.LogBookInstance().Evidencija .Where(x => (x.Key.JMBG == v.JMBG)) .SelectMany(y => y.Value).ToList()); }
public List <Vlasnik> VratiVlasnike(string model) { return(LogBook.LogBookInstance().VratiVlasnike(model)); }
public Dictionary <Vlasnik, List <Vozilo> > VratiSve() { return(LogBook.LogBookInstance().Evidencija); }
public void RegistrujVozilo(Vlasnik v, Vozilo z) { LogBook.LogBookInstance().Dodaj(v, z); }