static void AddNewRecord(Entry entry) { using (var repo = new EntryRepo()) { repo.Add(entry); } }
public void SaveEntry() { try { using (var repo = new EntryRepo()) { repo.Add(this.NewEntry); } } catch (Exception) { // TO DO: determine how to handle this return; } }