public JsonResult BindStates(int countryId) { var results = BL_tblStateM.GetAllRecordsById(countryId).Select(x => new { x.iStateId, x.sState }); return(Json(new { results }, JsonRequestBehavior.AllowGet)); }
public JsonResult BindStates(string id) { int cid = int.Parse(id); List <etblStateM> results = BL_tblStateM.GetAllRecordsById(cid); return(Json(new { suggestions = results }, JsonRequestBehavior.AllowGet)); }