Ejemplo n.º 1
0
        public async Task <BaseResponse <StoringResponse> > PostItem(PostRequest param)
        {
            var uri     = http.GetUri("item", new { }.AsDictionary());
            var request = new HttpRequestMessage(HttpMethod.Post, uri)
            {
                Content = new FormUrlEncodedContent(param.AsDictionary())
            };
            var res = await http.SendAsync(request);

            var a = res.Content.ReadAsStringAsync().Result;

            return(JsonConvert.DeserializeObject <BaseResponse <StoringResponse> >(a));
        }