public virtual AddressDto UpdateAddress(CustomerDto customer, AddressDto model)
        {
            var address = _customerService.GetCustomerById(customer.Id)?.Addresses.FirstOrDefault(x => x.Id == model.Id);

            address            = model.ToEntity(address);
            address.CustomerId = customer.Id;
            _customerService.UpdateAddress(address);
            return(address.ToModel());
        }
        public virtual AddressDto InsertAddress(CustomerDto customer, AddressDto model)
        {
            var address = model.ToEntity();

            address.CreatedOnUtc = DateTime.UtcNow;
            address.Id           = "";
            address.CustomerId   = customer.Id;
            _customerService.InsertAddress(address);
            return(address.ToModel());
        }