public void Insert(Sound sound) { try { _ghlr.UpdateDateLastModified(sound.GHLocationID); db.Sounds.Add(sound); db.SaveChanges(); } catch (Exception ex) { Log.Error(ex.Message, ex); } }
public void Insert(Video video) { try { _ghlr.UpdateDateLastModified(video.GHLocationID); db.Videos.Add(video); db.SaveChanges(); } catch (Exception ex) { Log.Error(ex.Message, ex); } }
public void Insert(Image image) { try { _ghlr.UpdateDateLastModified(image.GHLocationID); db.Images.Add(image); db.SaveChanges(); } catch (Exception ex) { Log.Error(ex.Message, ex); } }
public void Insert(Text text) { try { _ghlr.UpdateDateLastModified(text.GHLocationID); db.Texts.Add(text); db.SaveChanges(); } catch (Exception ex) { Log.Error(ex.Message, ex); } }