private bool CreateNewEntity(CmpgnAddObjElEntity entitySettings, Guid contactId, Guid participantId)
        {
            var newEntity = GetNewEntity();

            FillContactColumnValue(ref newEntity, entitySettings.ContactColumnPath, contactId);
            FillEntityColumns(newEntity, contactId, entitySettings.Columns, entitySettings.RestrictedColumns);
            try {
                return(newEntity.Save(false));
            } catch (Exception ex) {
                CampaignLogger.ErrorFormat(nameof(CampaignAddObjectFlowElement), ex, newEntity.SchemaName,
                                           $"ParticipantId = {participantId}");
            }
            return(false);
        }
Exemple #2
0
 public CmpgnAddObjElEntity(CmpgnAddObjElEntity source)
     : base(source)
 {
 }