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); }