public void DodajKomentar(Komentar komentar, Korisnik korisnik)
        {
            try
            {
                XElement node = VoznjaData.Root.Elements("item").Where(i => (string)i.Element("KorisnickoIme") == korisnik.KorisnickoIme).FirstOrDefault();

                node.SetElementValue("Komentar", komentar);

                VoznjaData.Save(HttpContext.Current.Server.MapPath("~/App_Data/Voznje.xml"));
            }
            catch (Exception)
            {
                throw new NotImplementedException();
            }
        }
Ejemplo n.º 2
0
 public Voznja(Lokacija lokacija, TipAutomobila tip, string musterija, Lokacija odrediste, string dispecer, string vozac, string iznos, Komentar komentar, Status status)
 {
     this.DatumIVremePorudzbine = DateTime.Now;
     this.Lokacija     = lokacija;
     this.Tip          = tip;
     this.Musterija    = musterija;
     this.Odrediste    = odrediste;
     this.Dispecer     = dispecer;
     this.Vozac        = vozac;
     this.Iznos        = iznos;
     this.Komentar     = komentar;
     this.StatusVoznje = status;
 }