Example #1
0
 public void SaveRecord(FinRecord record)
 {
     if (record.Id != 0)
     {
         database.Update(record);
     }
     else
     {
         database.Insert(record);
     }
 }
Example #2
0
 public void DeleteRecord(FinRecord record)
 {
     database.Delete <FinRecord>(record.Id);
 }