public AccountCreateResponse Post(AccountCreateRequest req) { AccountCreateResponse response; try { response = new WePayClient().Invoke<AccountCreateRequest, AccountCreateResponse>(req, req.actionUrl, req.accessToken); } catch(WePayException ex) { response = new AccountCreateResponse { account_id=0, Error = ex }; } return response; }
public AccountCreateResponse Post(AccountCreateRequest req) { AccountCreateResponse response; try { response = new WePayClient().Invoke <AccountCreateRequest, AccountCreateResponse>(req, req.actionUrl, req.accessToken); } catch (WePayException ex) { response = new AccountCreateResponse { account_id = 0, Error = ex }; } return(response); }