public override bool PersistCallHistory(CallButler.Data.CallButlerDataset.CallHistoryRow callHistory)
        {
            bool added = false;

            CallButler.Data.CallButlerDataset.CallHistoryRow existingRow = data.CallHistory.FindByCallID(callHistory.CallID);

            // If the row doesn't exist, add it. Otherwise edit it
            if (existingRow == null)
            {
                // Add a new row
                data.CallHistory.ImportRow(callHistory);
                added = true;
            }
            else
            {
                // Update the row
                UpdateRowChanges(existingRow, callHistory);
            }

            SaveChanges();

            return(added);
        }
Exemple #2
0
 public abstract bool PersistCallHistory(CallButler.Data.CallButlerDataset.CallHistoryRow callHistory);