Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "HenkiloID,Etunimi,Sukunimi,Osoite,Esimies")] Henkilot henkilot)
 {
     if (ModelState.IsValid)
     {
         db.Entry(henkilot).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(henkilot));
 }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "ProjektiID,Nimi")] Projektit projektit)
 {
     if (ModelState.IsValid)
     {
         db.Entry(projektit).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(projektit));
 }
Ejemplo n.º 3
0
 public ActionResult Edit([Bind(Include = "TuntiID,ProjektiID,HenkiloID,Pvm,Tunnit1")] Tunnit tunnit)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tunnit).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tunnit));
 }