/// <inheritdoc /> public async Task <CustomerProfileResult> GetByEmailAsync(string email, bool includeNotVerified = false, bool includeNotActive = false) { var customer = await _customerProfileRepository.GetByCustomerEmailAsync(email, includeNotVerified, includeNotActive); if (customer == null) { _log.Info("Customer profile not found", context: email.SanitizeEmail()); return(new CustomerProfileResult { ErrorCode = CustomerProfileErrorCodes.CustomerProfileDoesNotExist }); } return(new CustomerProfileResult { Profile = customer }); }