Example #1
0
        private bool Add_contact_to_aftale(crm.Aftale crm_aftale, of.data.Agreement of_aftale)
        {
            if (of_aftale.Contact_id.HasValue == false)
            {
                return(false);
            }

            crm.Contact crm_contact = Get_or_create_crm_contact(of_aftale.Contact_id.Value);

            bool update_nrq_bidragyder = false;

            if (crm_aftale.nrq_bidragyder == null || crm_aftale.nrq_bidragyder.Id != crm_contact.Id)
            {
                update_nrq_bidragyder = true;
            }

            crm_aftale.nrq_bidragyder = crm_contact.Get_entity_reference();

            return(update_nrq_bidragyder);
        }
Example #2
0
        private void Add_crm_contact_to_abonnement(crm.Abonnement crm_abonnement, of.data.Subscription of_abonnement)
        {
            crm.Contact crm_contact = Get_or_create_crm_contact(of_abonnement.Contact_id.Value);

            crm_abonnement.Nrq_subscriber = crm_contact.Get_entity_reference();
        }