public async Task <bool> IsTraderWithEmailExistsForPartnerAsync(string email, string partnerId = null) { string partnerIdAccordingToPolicy = await GetPartnerIdAccordingToSettings(partnerId); var result = await _clientAccountService.GetClientByEmailAndPartnerIdAsync(email, partnerIdAccordingToPolicy); return(result != null); }
private async Task <ClientAccountInformationModel> GetClientByEmailAsync(string email) { ClientAccountInformationModel client = null; try { client = await _clientAccountClient.GetClientByEmailAndPartnerIdAsync(email, null); } catch (Exception) { _log.WriteInfo(nameof(GetKycStatus), email.SanitizeEmail(), "Can't get client info"); } return(client); }