public void AddPrayer(Prayer prayer) { using (var database = new VersesSQLiteConnection(Path)) { database.AddPrayer(prayer); } }
public bool UpdatePrayer(Prayer prayer) { using (var database = new VersesSQLiteConnection(Path)) { if (database.PrayerExists(prayer.Id)) { database.UpdatePrayer(prayer); return(true); } return(false); } }
public void UpdatePrayer(Prayer p) { Update(p); }
public void RemovePrayer(Prayer p) { Delete <Prayer> (p.Id); }
public void AddPrayer(Prayer p) { Insert(p); }