Example #1
0
 public bool Update(OccasionComment item)
 {
     _db.Entry(item).State = EntityState.Modified;
     return(Save());
 }
Example #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());
 }
Example #3
0
 public bool Add(OccasionComment item)
 {
     _db.OcassionComments.Add(item);
     return(Save());
 }