Example #1
0
 public ActionResult Edit([Bind(Include = "BodyPartID,Title,Description,Location,Image")] BodyPart bodyPart)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bodyPart).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bodyPart));
 }
Example #2
0
 public ActionResult Edit([Bind(Include = "BmiId,UserId,Weight,Height,Result,Verdict")] BMI bMI)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bMI).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bMI));
 }