public string groupNameQuery()
        {
            string json = string.Empty;
            try
            {
                BLL.gigade.Model.Vendor vendorModel = (BLL.gigade.Model.Vendor)Session["vendor"];
                string ParentId = string.Empty;
                uint pid = 0;
                if (!string.IsNullOrEmpty(Request.Params["ProductId"]))
                {
                    if (uint.TryParse(Request.Params["ProductId"].ToString(), out pid))
                    {
                        List<ProductCombo> resultList = null;
                        _combMgr = new ProductComboMgr(connectionString);
                        resultList = _combMgr.groupNumQuery(new ProductCombo { Parent_Id = int.Parse(Request.Params["ProductId"]) });
                        json = JsonConvert.SerializeObject(resultList);
                    }
                    else
                    {
                        ParentId = Request.Params["ProductId"];
                        List<ProductComboTemp> resultList = null;
                        int writer_id = Convert.ToInt32(vendorModel.vendor_id);
                        _combTempMgr = new ProductComboTempMgr(connectionString);
                        ProductComboTemp query = new ProductComboTemp { Writer_Id = writer_id, Parent_Id = ParentId };
                        resultList = _combTempMgr.groupNumQueryByVendor(query);
                        json = JsonConvert.SerializeObject(resultList);
                    }
                }
            }
            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;
        }
 public string groupNameQuery()
 {
     string json = string.Empty;
     try
     {
         string ParentId = string.Empty;
         if (!string.IsNullOrEmpty(Request.Params["ProductId"]))
         {
             ParentId = Request.Params["ProductId"];
         }
         List<ProductComboTemp> resultList = null;
         _combTempMgr = new ProductComboTempMgr(connectionString);
         ProductComboTemp query = new ProductComboTemp();
         query.Parent_Id = ParentId;
         resultList = _combTempMgr.groupNumQueryByVendor(query);
         json = JsonConvert.SerializeObject(resultList);
     }
     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;
 }