During registration time i entered both email and phone number.
We get customer by email easily because it is unique.
But how to get customer by phone number ? it saved in generic attribute table not in customer table.
I tried to get customer by phone using following method but it take some time to response. I need faster output for this. Please suggest solution for this.
var query = (from ga in _genericAttributeRepository.Table
where ga.Value == phoneNumber && ga.KeyGroup == "Customer" && ga.Key == NopCustomerDefaults.PhoneAttribute