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)); }
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)); }