Пример #1
0
        protected void Add_crm_contact(Action <ofplug.crm.Contact> adjust_contact)
        {
            ofplug.crm.Contact crm_contact = new ofplug.crm.Contact(_service, _tracingService);

            adjust_contact(crm_contact);

            Add_crm_contact(crm_contact);
        }
Пример #2
0
        protected void Add_crm_contact(ofplug.crm.Contact contact)
        {
            contact.CrmEntity = new Entity("contact");

            contact.Fill_fields();

            _service.entitiesToReturn.Enqueue(new List <Entity> {
                contact.CrmEntity
            });
        }
Пример #3
0
        private ofplug.of.data.Contact To_crm_and_back(ofplug.of.data.Contact of_contact, Action <ofplug.crm.Contact> modify_while_crm)
        {
            ofplug.crm.Contact crm_contact = new ofplug.crm.Contact(_service, _tracingService);
            ofplug.Mapping.Contact.To_crm(crm_contact, of_contact, _tracingService);

            modify_while_crm(crm_contact);

            ofplug.of.data.Contact new_of_contact = new ofplug.of.data.Contact();
            ofplug.Mapping.Contact.To_of(crm_contact, new_of_contact);

            return(new_of_contact);
        }