Ejemplo n.º 1
0
        public JsonResult BindStates(int countryId)
        {
            var results = BL_tblStateM.GetAllRecordsById(countryId).Select(x => new { x.iStateId, x.sState });

            return(Json(new
            {
                results
            }, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public JsonResult BindStates(string id)
        {
            int cid = int.Parse(id);

            List <etblStateM> results = BL_tblStateM.GetAllRecordsById(cid);

            return(Json(new
            {
                suggestions = results
            }, JsonRequestBehavior.AllowGet));
        }