Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }