예제 #1
0
 public bool Update(OccasionComment item)
 {
     _db.Entry(item).State = EntityState.Modified;
     return(Save());
 }
예제 #2
0
 public bool Delete(OccasionComment item)
 {
     _db.OcassionComments.Remove(item);                  // i don't see any reason to keep comments so physical delete
     return(Save());
 }
예제 #3
0
 public bool Add(OccasionComment item)
 {
     _db.OcassionComments.Add(item);
     return(Save());
 }