private void SaveRecipientToDB(SMSrecipientCreator creator, SMSrecipientDefinitionExportModel definition) { bool added = creator.AddNewSMSrecipient(definition.FirstName, definition.LastName, definition.AreaCode, definition.PhoneNumber); string message; if (added) { message = $"SMS recipient successfully added to database."; } else { message = $"SMS recipient NOT ADDED to Database."; } OnSingleImportDone(added, definition.FullName, message, false); }
private bool AddNewSMSrecipientToDB() { SMSrecipientCreator creator = new SMSrecipientCreator(_realmProvider); return(creator.AddNewSMSrecipient("Noname", "Noname", 0, 0)); }