示例#1
0
        public IHttpActionResult Test(int id)
        {
            LzHandle Handle  = new LzHandle();
            string   strJson = Handle.GetProductinfo();

            return(Ok(strJson));
        }
示例#2
0
        public IHttpActionResult GetProductType()
        {
            LzHandle Handle  = new LzHandle();
            string   strJson = Handle.GetProductType();

            return(Ok(strJson));
        }
示例#3
0
        public IHttpActionResult GetProductList()
        {
            int      stateid = Convert.ToInt32(HttpContext.Current.Request.Form["TypeId"]);
            LzHandle Handle  = new LzHandle();
            string   strJson = Handle.GetProductList(stateid);

            return(Ok(strJson));
        }
示例#4
0
        public IHttpActionResult GetAddressListByUserid()
        {
            string   UserId  = HttpContext.Current.Request.Form["UserId"];
            LzHandle Handle  = new LzHandle();
            string   strJson = Handle.GetAddressListByUserid(UserId);

            return(Ok(strJson));
        }
示例#5
0
        public IHttpActionResult UpdateAll()
        {
            string   MJson   = HttpContext.Current.Request.Form["MJson"];
            LzHandle Handle  = new LzHandle();
            string   strJson = Handle.UpdateAll(MJson);

            return(Ok(strJson));
        }
示例#6
0
        /// <summary>
        /// 创建订单
        /// </summary>
        /// <returns></returns>
        public IHttpActionResult CreateOrder()
        {
            string   qJson   = HttpContext.Current.Request.Form["strJson"];
            LzHandle Handle  = new LzHandle();
            string   strJson = Handle.CreateOrder(qJson);

            return(Ok(strJson));
        }
示例#7
0
        public IHttpActionResult GetDetailByOrderId()
        {
            string   OrderId = HttpContext.Current.Request.Form["OrderId"];
            LzHandle Handle  = new LzHandle();
            string   strJson = Handle.GetDetailByOrderId(OrderId);

            return(Ok(strJson));
        }
示例#8
0
        public IHttpActionResult UpdateCartNum()
        {
            string   Cartid  = HttpContext.Current.Request.Form["Cartid"];
            int      CartNum = Convert.ToInt32(HttpContext.Current.Request.Form["CartNum"]);
            LzHandle Handle  = new LzHandle();
            string   strJson = Handle.UpdateCartNum(Cartid, CartNum);

            return(Ok(strJson));
        }
示例#9
0
        public IHttpActionResult UpdateStateid()
        {
            string   OrderId = HttpContext.Current.Request.Form["OrderId"];
            string   Stateid = HttpContext.Current.Request.Form["Stateid"];
            LzHandle Handle  = new LzHandle();
            string   strJson = Handle.UpdateStateid(OrderId, Stateid);

            return(Ok(strJson));
        }
示例#10
0
        public IHttpActionResult GetProductListByTypeId()
        {
            HttpRequest MyRequest = HttpContext.Current.Request;
            var         TypeId    = MyRequest.Form["TypeId"];
            LzHandle    Handle    = new LzHandle();
            string      strJson   = Handle.GetProductListByTypeId(TypeId);

            return(Ok(strJson));
        }