Пример #1
0
        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;
        }
Пример #2
0
        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);
        }