public AccountResponse Get(AccountRequest req) { AccountResponse response; try { response = new WePayClient().Invoke<AccountRequest, AccountResponse>(req, req.actionUrl, req.accessToken); } catch (WePayException ex) { response = new AccountResponse { name = ex.error, Error = ex }; } return response; }
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); }