Exemple #1
0
        public static List <AreaViewModel> GetDistrictsByCitySysNo(int citySysNo)
        {
            var list = CommonFacade.GetAllDistrict(citySysNo);

            return(EntityConverter <List <Area>, List <AreaViewModel> > .Convert(list));
        }
Exemple #2
0
        public ActionResult GetAllDistrict(int citySysNo)
        {
            var data = CommonFacade.GetAllDistrict(citySysNo);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }