public bool UpdateVerse(Verse verse) { using (var database = new VersesSQLiteConnection(Path)) { if (database.VerseExists(verse.Title)) { database.UpdateVerse(verse); return(true); } return(false); } }
public bool AddVerse(Verse verse) { var title = verse.Title; using (var database = new VersesSQLiteConnection(Path)) { if (database.VerseExists(title)) { return(false); } database.AddVerse(verse); return(true); } }
public void UpdateVerse(Verse v) { Update(v); }
public void RemoveVerse(Verse v) { Delete <Verse> (v.Id); }
public void AddVerse(Verse v) { Insert(v); }