Ejemplo n.º 1
0
        public JsonResult <Logistics> GetLogisticsInfo(string type, string postid)  //JsonResult<dynamic>
        {
            string    Url       = string.Format(@"http://www.kuaidi100.com/query?type={0}&postid={1}", type, postid);
            string    Result    = WebServiceHelper.Get(Url);
            Logistics logistics = JsonConvert.DeserializeObject <Logistics>(Result);

            return(Json <Logistics>(logistics));
        }