示例#1
0
        /// <summary>
        /// Contact Person Upd
        /// </summary>
        public async Task <IEnumerable <ContactPersonDto> > ContactPersonUpd(List <ContactPersonDto> dtoItems, string userGuid, string serviceGroupGuid)
        {
            foreach (var dtoItem in dtoItems)
            {
                var item = new ContactPersonEntity()
                {
                    contact_person_guid = dtoItem.contact_person_guid,
                    contact_guid        = dtoItem.contact_guid,
                    contact_person_info = JsonDataExtensions.EntityToJsonData(dtoItem)
                };
                await ContactInfo.ContactPersonUpd(item, userGuid, serviceGroupGuid);
            }

            var result = await ContactPersonGet(null, dtoItems.Select(c => c.contact_guid).FirstOrDefault(), serviceGroupGuid);

            return(result);
        }