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);
 }
Esempio n. 4
0
 public void Edit(Suggestion suggestion)
 {
     db.Entry(suggestion).State = EntityState.Modified;
     db.SaveChanges();
 }
Esempio n. 5
0
 public void Add(Suggestion suggestion)
 {
     db.Add(suggestion);
     db.SaveChanges();
 }
 public void Add(Suggestion suggestion)
 {
     db.Add(suggestion);
 }