Exemplo n.º 1
0
        /// <summary>
        /// 提交订单
        /// </summary>
        /// <param name="orderPara"></param>
        /// <returns></returns>
        public StupidRD Order(OrderPara orderPara)
        {
            string url  = "/member/addOrder";
            string json = JsonConvert.SerializeObject(orderPara);  //序列化

            StupidRD stupidRD = RestSharpHelper <StupidRD> .Post(url, json);

            return(stupidRD);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 提交订单
        /// </summary>
        /// <param name="orderPara"></param>
        /// <returns></returns>
        public static StupidRD Order(OrderPara orderPara)
        {
            try
            {
                string url  = "/member/addOrder";
                string json = JsonConvert.SerializeObject(orderPara);  //序列化

                StupidRD stupidRD = RestSharpHelper <StupidRD> .Post(url, json);

                return(stupidRD);
            }
            catch (ApplicationException ex)
            {
                throw ex;
            }
        }