コード例 #1
0
 public IActionResult Edit(Location location)
 {
     db.Entry(location).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
コード例 #2
0
 public IActionResult Edit(Experience experience)
 {
     db.Entry(experience).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
コード例 #3
0
 public IActionResult Edit(Person person)
 {
     db.Entry(person).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
コード例 #4
0
 public ActionResult Update(People people)
 {
     db.Entry(people).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
コード例 #5
0
 public IActionResult Update(Location location)
 {
     db.Entry(location).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
コード例 #6
0
 public IActionResult Edit(Post post)
 {
     db.Entry(post).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index/" + post.LocationId));
 }