コード例 #1
0
ファイル: LocationsController.cs プロジェクト: BAPotts/AirPet
 public ActionResult Edit(Location location)
 {
     _db.Entry(location).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
コード例 #2
0
ファイル: ProfileController.cs プロジェクト: BAPotts/AirPet
 public ActionResult Edit(Profile profile)
 {
     _db.Entry(profile).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
コード例 #3
0
ファイル: HostsController.cs プロジェクト: BAPotts/AirPet
 public ActionResult Edit(Host host)
 {
     _db.Entry(host).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }