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; }
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); }