Esempio n. 1
0
        // POST: /Setting/GetDeleteZone?zoneID=1

        public JsonResult GetDeleteZone(int zoneID)
        {
            try
            {
                // รับค่าราคา
                SettingData st = new SettingData();

                st.DetleteZone(zoneID);

                return(Json(new
                {
                    data = " บันทึกการเพิ่มข้อมูลสำเร็จ ",
                    success = true
                }, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(Json(new
                {
                    data = ex.Message,
                    success = false
                }, JsonRequestBehavior.AllowGet));
            }
        }