예제 #1
0
 public ActionResult Edit([Bind(Include = "IdZaposlenik,Ime,Prezime,KorisnickoIme,Password")] Zaposlenik zaposlenik)
 {
     if (ModelState.IsValid)
     {
         db.Entry(zaposlenik).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(zaposlenik));
 }
예제 #2
0
 public ActionResult Edit([Bind(Include = "IdSeminar,Naziv,Opis,DatumPocetka,Popunjen,BrojMjesta")] Seminar seminar)
 {
     if (ModelState.IsValid)
     {
         db.Entry(seminar).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(seminar));
 }
 public ActionResult Edit([Bind(Include = "IdPredbiljezba,DatumPredbiljezbe,Ime,Prezime,Adresa,Email,Telefon,IdSeminar,Status")] Predbiljezba predbiljezba)
 {
     if (ModelState.IsValid)
     {
         db.Entry(predbiljezba).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdSeminar = new SelectList(db.Seminari, "IdSeminar", "Naziv", predbiljezba.IdSeminar);
     return(View(predbiljezba));
 }