Esempio n. 1
0
        private string getDataDetail(HttpContext context)
        {
            string id = "";

            if (context.Request.Params["id"] != null)
            {
                id = context.Request.Params["id"];
            }
            WK.BLL.bus_pickup_address   bll   = new WK.BLL.bus_pickup_address();
            WK.Model.bus_pickup_address model = bll.GetModel(int.Parse(id));
            return(Newtonsoft.Json.JsonConvert.SerializeObject(model));
        }
Esempio n. 2
0
        private string deleteDataByStatus(HttpContext context)
        {
            ReturnInfo returnInfo = new ReturnInfo();

            returnInfo.isSuccess = false;
            WK.BLL.bus_pickup_address bll = new WK.BLL.bus_pickup_address();
            int id = int.Parse(context.Request.Params["id"]);

            if (id > 0)
            {
                WK.Model.bus_pickup_address model = bll.GetModel(id);
                model.is_delete      = 1;
                returnInfo.isSuccess = bll.Update(model);
            }

            return(Newtonsoft.Json.JsonConvert.SerializeObject(returnInfo));
        }