Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            JObject countrydetails = new JObject();

            GT.BusinessLogicLayer.Index obj = new GT.BusinessLogicLayer.Index();
            //country = obj.Get_Country_Name_By_Ip(MyConf.MyConnectionString,Request.UserHostAddress);
            countrydetails   = obj.Get_Country_Name_By_Ip(MyConf.MyConnectionString, Request.UserHostAddress);
            missedCallNumber = Convert.ToString(countrydetails["MissedCallNumber"]);
            supportsNumber   = Convert.ToString(countrydetails["SupportNumber"]);
            countryId        = Convert.ToInt32(countrydetails["CountryId"]);
            maxLength        = Convert.ToInt32(countrydetails["MaxLength"]);
            minLength        = Convert.ToInt32(countrydetails["MinLength"]);
        }
Пример #2
0
        public JObject SendAppDownloadLink(HttpContext context)
        {
            JObject respJobj = new JObject();

            try
            {
                GT.BusinessLogicLayer.Index obj = new GT.BusinessLogicLayer.Index();
                respJobj = obj.SendAppDownloadLink(MyConf.MyConnectionString, Convert.ToInt32(context.Request["CountryId"]), Convert.ToString(context.Request["MobileNumber"]), Convert.ToString(context.Request["Email"]), Convert.ToInt32(context.Request["LeadType"]));
            }
            catch (Exception ex)
            {
                Logger.TraceLog("Exception In Index.ashx :" + ex.ToString());
            }
            return(respJobj);
        }