Hi folks,
on version 1.80 I used CustomerManager.GetCustomerByEmail, to get the Customer, but now on version 1.90 it does not exist anymore. Searching the library I found out now there is CustomerService, so to get the Customer I tried this:
NopConfig.ConnectionString = ConfigurationManager.ConnectionStrings["NopSqlConnection"].ConnectionString;
CustomerService CustomerManager = new CustomerService(new NopObjectContext(NopConfig.ConnectionString));
Customer customer = CustomerManager.GetCustomerByEmail(strEmail);
but I get the following error:
Object reference not set to an instance of an object
could you tell me, what I'm doing wrong and what has been changed from previuos version?
Many thanks,
Luca