Beispiel #1
0
        public JsonResult GetCascadeWoredas([DataSourceRequest] DataSourceRequest request, int zoneID)
        {
            var woredasByRegion  = _adminUnitService.GetWoredasByZone(zoneID);
            var woredasViewModel = AdminUnitViewModelBinder.BindListAdminUnitViewModel(woredasByRegion).ToList();

            return(Json(woredasViewModel.ToDataSourceResult(request), JsonRequestBehavior.AllowGet));
        }