Example #1
0
        /// <summary>
        /// Contact Bank Account Upd
        /// </summary>
        public async Task <IEnumerable <ContactBankAccountDto> > ContactBankAccountUpd(List <ContactBankAccountDto> dtoItems, string userGuid, string serviceGroupGuid)
        {
            foreach (var dtoItem in dtoItems)
            {
                var item = new ContactBankAccountEntity
                {
                    contact_bank_account_guid = dtoItem.contact_bank_account_guid,
                    contact_guid = dtoItem.contact_guid,
                    contact_bank_account_info = JsonDataExtensions.EntityToJsonData(dtoItem)
                };
                await ContactInfo.ContactBankAccountUpd(item, userGuid, serviceGroupGuid);
            }

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

            return(result);
        }