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