public override bool PersistLocalizedGreeting(int customerID, CallButler.Data.CallButlerDataset.LocalizedGreetingsRow localizedGreeting) { bool added = false; CallButler.Data.CallButlerDataset.LocalizedGreetingsRow existingRow = data.LocalizedGreetings.FindByLocalizedGreetingID(localizedGreeting.LocalizedGreetingID); // If the row doesn't exist, add it. Otherwise edit it if (existingRow == null) { // Add a new row data.LocalizedGreetings.ImportRow(localizedGreeting); added = true; } else { // Update the row UpdateRowChanges(existingRow, localizedGreeting); } SaveChanges(); return(added); }
public abstract bool PersistLocalizedGreeting(int customerID, CallButler.Data.CallButlerDataset.LocalizedGreetingsRow localizedGreeting);