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