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