Esempio n. 1
0
        public JsonResult LoadWard(int keyLoad)
        {
            var newsDAO = new NewsDAO();
            var wards   = newsDAO.GetWards(keyLoad);
            var streets = newsDAO.GetStreets(keyLoad);

            return(Json(new
            {
                wards = wards,
                streets = streets
            }, JsonRequestBehavior.AllowGet));
        }