Esempio n. 1
0
 public ActionResult Edit([Bind(Include = "ID,question1Score,question2Score,question3Score,question4Score,question5Score,question6Score,question7Score,question8Score,question9Score,question10Score,questionScore,totalScore")] Survey survey)
 {
     if (ModelState.IsValid)
     {
         db.Entry(survey).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(survey));
 }
 public ActionResult Edit([Bind(Include = "ID,Title,Genre,superHeroName")] VideoGame videoGame)
 {
     if (ModelState.IsValid)
     {
         db.Entry(videoGame).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(videoGame));
 }
Esempio n. 3
0
 public ActionResult Edit([Bind(Include = "ID,size,superHeroName")] Shirt shirt)
 {
     if (ModelState.IsValid)
     {
         db.Entry(shirt).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(shirt));
 }
Esempio n. 4
0
 public ActionResult Edit([Bind(Include = "ID,crateName")] Crate crate)
 {
     if (ModelState.IsValid)
     {
         db.Entry(crate).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(crate));
 }