public void RemoveAll() { db.Reviews.RemoveRange(db.Reviews); db.SaveChanges(); }
public Product Edit(Product product) { db.Entry(product).State = Microsoft.EntityFrameworkCore.EntityState.Modified; db.SaveChanges(); return(product); }