Exemple #1
0
        public static TResult PostResultByJson <TResult>(string url, byte[] postData, string contentType = "application/x-www-form-urlencoded")
        {
            var data = HttpHelper.Post(url, postData, contentType);

            return(GetResultByJson <TResult>(data));
        }
Exemple #2
0
        public static TResult GetResultByJson <TResult>(string url)
        {
            var data = HttpHelper.Get(url);

            return(GetResultByJson <TResult>(data));
        }