public JsonResult UpdateStatus()
 {
     string json = string.Empty;
     uint brand_id;
     PromotionBannerQuery query = new PromotionBannerQuery();
     try
     {
         if (!string.IsNullOrEmpty(Request.Params["id"]))
         {
             query.pb_id = Convert.ToInt32(Request.Params["id"]);
         }
         if (!string.IsNullOrEmpty(Request.Params["status"]))
         {
             query.pb_status = Convert.ToInt32(Request.Params["status"]);
         }
         if (!string.IsNullOrEmpty(Request.Params["multi"]))
         {
             query.multi =  Convert.ToInt32(Request.Params["multi"]);
         }
         query.pb_muser = Convert.ToInt32((System.Web.HttpContext.Current.Session["caller"] as Caller).user_id);
         _promotionBannerMgr = new PromotionBannerMgr(mySqlConnectionString);
         int i = _promotionBannerMgr.UpdateStatus(query,out brand_id);
         if (i > 0)
         {
             return Json(new { success = "true", error = "" });
         }
         else if (i == -1)
         {
             return Json(new { success = "false", error = "-1" }); //促銷圖片已過期,不可修改
         }
         else if (i == -2)
         {
             return Json(new { success = "false", error = "-2", id = brand_id }); //品牌編號已存在促銷圖,不可重複添加
         }
         else
         {
             return Json(new { success = "false", error = "0" });
         }
     }
     catch (Exception ex)
     {
         Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
         logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
         logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
         log.Error(logMessage);
         return Json(new { success = "false", msg = "" });
     }
 }