I upgrade thesite kentico 10 to 11 version, I faced the issues for get the Address list using below code.
Kentico 10 code:
AddressInfo address = AddressInfoProvider.GetAddresses() .WhereEquals("AddressLine1", userDto.AddressLine) .And() .WhereEquals("AddressCity", userDto.City);
What issues are you having? You need to be more specific.
In Kentico 11 "AddressInfoProvider" was removed instead of what we need to use
I am geeting below error message.
Hi Tiger,
A few notes:
Do you add anything else into your query? Does this query work fine and return all the addresses? AddressInfo address = AddressInfoProvider.GetAddresses().ToList();
AddressInfo address = AddressInfoProvider.GetAddresses().ToList();
Please, sign in to be able to submit a new answer.