public override void Migrate() { if (!ShouldImport) { return; } var engine = new ContactEngine(CoreContext.TenantManager.GetCurrentTenant().TenantId, user.Guid.ToString()); foreach (var card in GetContactCards()) { try { engine.SaveContactCard(card); } catch (Exception ex) { Log($"Couldn't save contactCard {card.ContactInfo.ContactName}", ex); } } }
public ContactRepository() { _engine = new ContactEngine(); }