예제 #1
0
 public Review Edit(Review review)
 {
     db.Entry(review).State = EntityState.Modified;
     db.SaveChanges();
     return(review);
 }
예제 #2
0
 public Product Edit(Product product)
 {
     db.Entry(product).State = EntityState.Modified;
     db.SaveChanges();
     return(product);
 }