// ../Products/ActivatedProduct/id
        public JsonResult ActivatedProduct(int id)
        {
            try
            {
                if (Session["iuser"] == null)
                {
                    throw new Exception(" Session หมดอายุ , กรุณาเข้าสู่ระบบใหม่อีกครั้ง !! ");
                }

                ProductData data = new ProductData();
                data.ActivatedProduct(id);


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