public ActionResult Edit([Bind(Include = "DogId,Name,PictureAddress,ShelterId,BreedId,Availability")] Dog dog) { if (ModelState.IsValid) { db.Edit(dog); return(RedirectToAction("Index")); } return(View(dog)); }
public ActionResult Edit([Bind(Include = "DogId,Name,PictureAddress,ShelterId,BreedId,Availability")] Dog dog) { if (ModelState.IsValid) { db.Edit(dog); return(RedirectToAction("Index")); } return(View(dog)); }