public Customer MergeEntity(Customer customer)
        {
            var ids = AddressList.ToArray();

            customer.AddressList = customer.AddressList.FindAll(a => ids.Contains(a.Id));

            Entity = customer;
            return(customer);
        }