Exemple #1
0
 public Product Edit(Product product)
 {
     db.Entry(product).State = EntityState.Modified;
     db.SaveChanges();
     return(product);
 }
 public Review Edit(Review review)
 {
     db.Entry(review).State = EntityState.Modified;
     db.SaveChanges();
     return(review);
 }
Exemple #3
0
 public IActionResult Edit(BlogPost blogPost)
 {
     db.Entry(blogPost).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }