Beispiel #1
0
 public ActionResult Edit(Location location)
 {
     _db.Entry(location).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Beispiel #2
0
 public ActionResult Edit(Profile profile)
 {
     _db.Entry(profile).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Beispiel #3
0
 public ActionResult Edit(Host host)
 {
     _db.Entry(host).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }