VirtoCommerce.Web.Models.Services.CustomerService.UpdateCustomerAsync C# (CSharp) Method

UpdateCustomerAsync() public method

public UpdateCustomerAsync ( Customer customer ) : System.Threading.Tasks.Task
customer VirtoCommerce.Web.Models.Customer
return System.Threading.Tasks.Task
        public async Task UpdateCustomerAsync(Customer customer)
        {
            var contact = await this.GetContactAsync(customer.Email);

            contact.Addresses = new List<Address>();

            foreach (var customerAddress in customer.Addresses)
            {
                contact.Addresses.Add(customerAddress.AsServiceModel());
            }

            await this._customerClient.UpdateContactAsync(contact);
        }