Beispiel #1
0
 public ActionResult Edit([Bind(Include = "ProfileID,Name,Bio,HotDogID")] Profile profile)
 {
     if (ModelState.IsValid)
     {
         db.Entry(profile).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(profile));
 }
 public ActionResult Edit([Bind(Include = "HotDogID,Name,LastAte,LastPlaceAte")] HotDog hotDog)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hotDog).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(hotDog));
 }