Пример #1
0
        public JsonResult GetListWardByDistrictID(int disid)
        {
            var listWard = LocationDAO.GetListWardByDistrictID(disid);

            return(Json(new
            {
                items = listWard.Select(x => new
                {
                    id = x.id,
                    text = x.name
                })
            }, JsonRequestBehavior.AllowGet));
        }