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