コード例 #1
0
        public JsonResult GetCascadeCategories()
        {
            var geos = _geoRepository.All();

            return(Json(geos.Select(c => new { Id = c.Id, Name = c.Name }), JsonRequestBehavior.AllowGet));
        }