Esempio n. 1
0
 public ActionResult GetZonesReport(int?areaId)
 {
     return(Json(areaId.HasValue ? new SelectList(_adminUnitService.GetZonesForReport(areaId.Value), "AreaId", "AreaName") :
                 new SelectList(Enumerable.Empty <SelectListItem>(), "AreaId", "AreaName"), JsonRequestBehavior.AllowGet));
 }