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