public ActionResult Edit([Bind(Include = "StatusId,Naziv")] Status status) { if (ModelState.IsValid) { db.Entry(status).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(status)); }
public ActionResult Edit([Bind(Include = "ID,Ime,Prezime")] Student student) { if (ModelState.IsValid) { db.Entry(student).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(student)); }
public ActionResult Edit([Bind(Include = "PredmetId,Naziv,ETCS")] Predmet predmet) { if (ModelState.IsValid) { db.Entry(predmet).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(predmet)); }
public ActionResult Edit([Bind(Include = "Id,Ime,Prezime,Username,Password,Telefon")] Korisnik korisnik) { if (ModelState.IsValid) { db.Entry(korisnik).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(korisnik)); }
public ActionResult Edit([Bind(Include = "PutnikId,Ime,Prezime,DatumRodjenja,Email")] Putnik putnik) { if (ModelState.IsValid) { db.Entry(putnik).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(putnik)); }
public ActionResult Edit([Bind(Include = "FizickoLiceId,Ime,prezime,adresa,email,korisnickoIme,lozinka,datumRodjenja")] FizickoLice fizickoLice) { if (ModelState.IsValid) { db.Entry(fizickoLice).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(fizickoLice)); }
public ActionResult Edit([Bind(Include = "ID,Naziv,Username,Password,Adresa,Telefon")] AutoSalon autoSalon) { if (ModelState.IsValid) { db.Entry(autoSalon).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(autoSalon)); }
public ActionResult Edit([Bind(Include = "RadnikId,ime,prezime,korisnickoIme,lozinka,pozicija,plata,datumRodjenja,slika")] Radnik radnik) { if (ModelState.IsValid) { db.Entry(radnik).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(radnik); }
public ActionResult Azuriraj([Bind(Include = "ID,Marka,Model,Boja,Cijena,Godiste")] Automobil automobil) { if (ModelState.IsValid) { db.Entry(automobil).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Lista")); } return(View(automobil)); }
public ActionResult Edit([Bind(Include = "DestinacijaId,Naziv")] Destinacija destinacija) { if (ModelState.IsValid) { db.Entry(destinacija).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(destinacija)); }
public ActionResult Edit([Bind(Include = "RacunId,brojNarudzbi,datumIzdavanja")] Racun racun) { if (ModelState.IsValid) { db.Entry(racun).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(racun)); }
public ActionResult Edit([Bind(Include = "FirmaId,nazivFirme,ime,prezime,adresa,email,korisnickoIme,lozinka,brojRacuna")] Firma firma) { if (ModelState.IsValid) { db.Entry(firma).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(firma)); }
public ActionResult Edit([Bind(Include = "ZahtjevId,LetId,Razlog,Obradjen,Prihvacen")] Zahtjev zahtjev) { if (ModelState.IsValid) { db.Entry(zahtjev).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.LetId = new SelectList(db.Let, "LetId", "LetId", zahtjev.LetId); return(View(zahtjev)); }
public ActionResult Edit([Bind(Include = "IzradaReklamnogMaterijalaId,datumNarudzbe,trenutniStatus,kolicina,hitnaNarudzba,RadnikId,RacunId,predmet,boja,slika,logo")] IzradaReklamnogMaterijala izradaReklamnogMaterijala) { if (ModelState.IsValid) { db.Entry(izradaReklamnogMaterijala).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } ViewBag.RacunId = new SelectList(db.Racun, "RacunId", "RacunId", izradaReklamnogMaterijala.RacunId); ViewBag.RadnikId = new SelectList(db.Radnik, "RadnikId", "ime", izradaReklamnogMaterijala.RadnikId); return View(izradaReklamnogMaterijala); }
public ActionResult Edit([Bind(Include = "PrintanjeId,datumNarudzbe,trenutniStatus,kolicina,hitnaNarudzba,RadnikId,RacunId,format,uvez,dokument,uBoji")] Printanje printanje) { if (ModelState.IsValid) { db.Entry(printanje).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.RacunId = new SelectList(db.Racun, "RacunId", "RacunId", printanje.RacunId); ViewBag.RadnikId = new SelectList(db.Radnik, "RadnikId", "ime", printanje.RadnikId); return(View(printanje)); }
public ActionResult Edit([Bind(Include = "IzradaSlikaId,datumNarudzbe,trenutniStatus,kolicina,hitnaNarudzba,RadnikId,RacunId,format,dodatno")] IzradaSlika izradaSlika) { if (ModelState.IsValid) { db.Entry(izradaSlika).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.RacunId = new SelectList(db.Racun, "RacunId", "RacunId", izradaSlika.RacunId); ViewBag.RadnikId = new SelectList(db.Radnik, "RadnikId", "ime", izradaSlika.RadnikId); return(View(izradaSlika)); }
public ActionResult Edit([Bind(Include = "NarudzbaId,vrstaNarudzbe,datumNarudzbe,trenutniStatus,kolicina,hitnaNarudzba,RadnikId,RacunId")] Narudzba narudzba) { if (ModelState.IsValid) { db.Entry(narudzba).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.RacunId = new SelectList(db.Racun, "RacunId", "RacunId", narudzba.RacunId); ViewBag.RadnikId = new SelectList(db.Radnik, "RadnikId", "ime", narudzba.RadnikId); return(View(narudzba)); }
public ActionResult Edit([Bind(Include = "UpisNaPredmetId,PredmetId,StudentId,Ocjena")] UpisNaPredmet upisNaPredmet) { if (ModelState.IsValid) { db.Entry(upisNaPredmet).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.PredmetId = new SelectList(db.Predmet, "PredmetId", "Naziv", upisNaPredmet.PredmetId); ViewBag.StudentId = new SelectList(db.Student, "ID", "Ime", upisNaPredmet.StudentId); return(View(upisNaPredmet)); }
public ActionResult Edit([Bind(Include = "KartaId,LetId,PutnikId")] Karta karta) { if (ModelState.IsValid) { db.Entry(karta).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.LetId = new SelectList(db.Let, "LetId", "LetId", karta.LetId); ViewBag.PutnikId = new SelectList(db.Putnik, "PutnikId", "Ime", karta.PutnikId); return(View(karta)); }
public ActionResult Edit([Bind(Include = "LetId,DatumiVrijeme,StatusId,LinijaId")] Let let) { if (ModelState.IsValid) { db.Entry(let).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.LinijaId = new SelectList(db.Linija, "LinijaId", "LinijaId", let.LinijaId); ViewBag.StatusId = new SelectList(db.Status, "StatusId", "Naziv", let.StatusId); return(View(let)); }
public ActionResult Edit([Bind(Include = "LinijaId,DanId,VrijemePolaska,AviokompanijaId,DestinacijaId,TrajanjeLeta,Cijena")] Linija linija) { if (ModelState.IsValid) { db.Entry(linija).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.AviokompanijaId = new SelectList(db.Aviokompanija, "AviokompanijaId", "Naziv", linija.AviokompanijaId); ViewBag.DanId = new SelectList(db.Dan, "DanId", "Naziv", linija.DanId); ViewBag.DestinacijaId = new SelectList(db.Destinacija, "DestinacijaId", "Naziv", linija.DestinacijaId); return(View(linija)); }