public JsonResult WardDropdown(int disid, string term, string q, string _type = "query") { var entities = new WardDao().Search(disid, term).Select(x => new { id = x.Id, text = x.Type + " " + x.Name, disabled = x.IsDeleted == true ? true : false }); return(Json(new { results = entities }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetWardByDistrictId(string id) { List <ward> data = new WardDao().GetListByDistrictId(id); return(Json(data, JsonRequestBehavior.AllowGet)); }