Пример #1
0
        public UserRegisterResponse Register(UserRegisterRequest req)
        {
            UserRegisterResponse response;
            try
            {
                response = new WePayClient().Invoke<UserRegisterRequest, UserRegisterResponse>(req, req.actionUrl);
            }
            catch (WePayException ex)
            {
                response = new UserRegisterResponse { access_token = "error", Error=ex };
            }

            return response;
        }
Пример #2
0
        public UserRegisterResponse Register(UserRegisterRequest req)
        {
            UserRegisterResponse response;

            try
            {
                response = new WePayClient().Invoke <UserRegisterRequest, UserRegisterResponse>(req, req.actionUrl);
            }
            catch (WePayException ex)
            {
                response = new UserRegisterResponse {
                    access_token = "error", Error = ex
                };
            }

            return(response);
        }