public void Update(ProductSuggest productSuggest) { db.Entry(productSuggest).State = EntityState.Modified; db.SaveChanges(); }
public void Add(ProductSuggest productSuggest) { db.ProductSuggests.Add(productSuggest); db.SaveChanges(); }
public void Update(ProductSuggest productSuggest) { db.Entry(productSuggest).State = EntityState.Modified; db.SaveChanges(); }
public void Add(ProductSuggest productSuggest) { db.ProductSuggests.Add(productSuggest); db.SaveChanges(); }