public HttpResponseBase GetBrandName()
 {
     string json = string.Empty;
     _promotionBannerMgr = new PromotionBannerMgr(mySqlConnectionString);
     PromotionBannerQuery query = new PromotionBannerQuery();
     try
     {
         if (!string.IsNullOrEmpty(Request.Params["pb_id"]))
         {
             query.pb_id = Convert.ToInt32(Request.Params["pb_id"]);
         }
         if (!string.IsNullOrEmpty(Request.Params["brand_id"]))
         {
             query.singleBrand_id = Convert.ToUInt32(Request.Params["brand_id"]);
         }
         if (!string.IsNullOrEmpty(Request.Params["startdate"]))
         {
             query.date_start = Convert.ToDateTime(Request.Params["startdate"]);
         }
         if (!string.IsNullOrEmpty(Request.Params["enddate"]))
         {
             query.date_end = Convert.ToDateTime(Request.Params["enddate"]);
         }
         if (!string.IsNullOrEmpty(Request.Params["multi"]))
         {
             query.multi = Convert.ToInt32(Request.Params["multi"]);
         }
         if (query.singleBrand_id == 0)
         {
             json = "{success:false,msg:\"-1\"}";
         }
         else
         {
             string name = _promotionBannerMgr.GetBrandName(query);
             if (name == "-1")
             {
                 json = "{success:false,msg:\"-1\"}";
             }
             else if (name == "-2")
             {
                 json = "{success:false,msg:\"-2\"}";
             }
             else
             {
                 json = "{success:true,msg:\""+ name +" \"}";
             }
         }
     }
     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);
         json = "{success:false}";
     }
     this.Response.Clear();
     this.Response.Write(json.ToString());
     this.Response.End();
     return this.Response;
 }