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