// GET: /Setting/GetListCustomersByZone/:id public JsonResult GetListCustomersByZone(int id) { try { IList <Customers> listData = new List <Customers>(); SettingData data = new SettingData(); listData = data.GetListCustomersByZone(id); return(Json(new { data = listData, success = true }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { success = false, errMsg = ex.Message }, JsonRequestBehavior.AllowGet)); } }