public async Task <GetAccountsInfoResponse> GetAccountsInfoAsync(
            long?customerId,
            bool onlyParentAccounts)
        {
            var request = new GetAccountsInfoRequest
            {
                CustomerId         = customerId,
                OnlyParentAccounts = onlyParentAccounts
            };

            return(await CustomerManagementService.CallAsync((s, r) => s.GetAccountsInfoAsync(r), request));
        }
示例#2
0
        public async Task <GetAccountsInfoResponse> GetAccountsInfoAsync(ApiAuthentication auth, long?customerId, bool onlyParentAccounts)
        {
            var request = new GetAccountsInfoRequest
            {
                CustomerId         = customerId,
                OnlyParentAccounts = onlyParentAccounts,
            };

            try
            {
                SetAuthHelper.SetAuth(auth, request);

                return(await Check().GetAccountsInfoAsync(request));
            }
            catch (Exception ex)
            {
                Log(new LogEventArgs(ServiceType.CustomerManagement, "GetAccountsInfoAsync", ex.Message, new { Request = request }, ex));
            }

            return(null);
        }