public void Remove(Suggestion suggestion) { db.Remove(suggestion); db.SaveChanges(); }
public Suggestion Edit(Suggestion suggestion) { db.Entry(suggestion).State = EntityState.Modified; db.SaveChanges(); return(suggestion); }
public Suggestion Save(Suggestion suggestion) { db.Suggestions.Add(suggestion); db.SaveChanges(); return(suggestion); }
public void Edit(Suggestion suggestion) { db.Entry(suggestion).State = EntityState.Modified; db.SaveChanges(); }
public void Add(Suggestion suggestion) { db.Add(suggestion); db.SaveChanges(); }
public void Add(Suggestion suggestion) { db.Add(suggestion); }