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