Beispiel #1
0
        // GET: Telecaller
        public ActionResult Index()
        {
            TelecallerCustomerData objteledata = new TelecallerCustomerData();
            var userDetails   = (CustomerLoginDetail)Session["UserSession"];
            var lstGenderList = RR.GetGenderList(userDetails.GroupId, userDetails.connectionString);

            ViewBag.lstGenderList = lstGenderList;
            return(View(objteledata));
        }
Beispiel #2
0
        public JsonResult GetCustomerData(string MobileNo)
        {
            TelecallerCustomerData objteledata = new TelecallerCustomerData();
            var userDetails = (CustomerLoginDetail)Session["UserSession"];

            objteledata = TR.GetTelecallerCustomer(MobileNo, userDetails.GroupId, userDetails.connectionString);
            return(new JsonResult()
            {
                Data = objteledata, JsonRequestBehavior = JsonRequestBehavior.AllowGet, MaxJsonLength = Int32.MaxValue
            });
        }
Beispiel #3
0
        public TelecallerCustomerData GetTelecallerCustomer(string MobileNo, string GroupId, string connstr)
        {
            TelecallerCustomerData objteledata = new TelecallerCustomerData();

            try
            {
                using (var context = new BOTSDBContext(connstr))
                {
                    objteledata = context.Database.SqlQuery <TelecallerCustomerData>("SP_BOTS_TelecallerData @pi_mobileNo",
                                                                                     new SqlParameter("@pi_mobileNo", MobileNo)).FirstOrDefault <TelecallerCustomerData>();
                }
            }
            catch (Exception ex)
            {
                newexception.AddException(ex, GroupId);
            }
            return(objteledata);
        }