Beispiel #1
0
 public ActionResult Edit(Animal animal)
 {
     _db.Entry(animal).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Beispiel #2
0
 public ActionResult Edit(Species species)
 {
     _db.Entry(species).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }