示例#1
0
 public AccountResponse Find(AccountFindRequest req)
 {
     AccountResponse response;
     try
     {
         response = new WePayClient().Invoke<AccountFindRequest, AccountResponse>(req, req.actionUrl, req.accessToken);
     }
     catch (WePayException ex)
     {
         response = new AccountResponse { name = ex.error, Error = ex };
     }
     return response;
 }
示例#2
0
        public AccountResponse Find(AccountFindRequest req)
        {
            AccountResponse response;

            try
            {
                response = new WePayClient().Invoke <AccountFindRequest, AccountResponse>(req, req.actionUrl, req.accessToken);
            }
            catch (WePayException ex)
            {
                response = new AccountResponse {
                    name = ex.error, Error = ex
                };
            }
            return(response);
        }