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