public static int AddPacijent(string ime, string prezime) { DataValidator.ValidateName(ime, prezime); Pacijent tempPacijent = new Pacijent(); // instanciranja tempPacijent.Karton = new Karton(); tempPacijent.Karton.Pregledi = new List <Pregled>(); tempPacijent.Karton.PreglediSistematski = new List <PregledSistematski>(); tempPacijent.Karton.Bolesti = new List <Bolest>(); tempPacijent.Karton.Alergije = new List <Alergija>(); tempPacijent.Karton.ZdravstvenaHistorijaPorodice = new List <Tuple <string, string> >(); tempPacijent.FiskalniRacun = new FiskalniRacun(); tempPacijent.Ime = ime; tempPacijent.Prezime = prezime; tempPacijent.Id = _idGeneratorPacijent++; _pacijenti.Add(tempPacijent); return(tempPacijent.Id); }