Example #1
0
        public ActionResult GetAsSelectListWithParentIDMultiple(int[] regionID, int[] selected)
        {
            var ctrl     = new Apis.CityController(CityService);
            var response = ctrl.GetAsSelectListWithParentIDMultiple(regionID, selected) as OkNegotiatedContentResult <List <object> >;

            return(Json(response.Content, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public ActionResult GetAsSelectList(int regionID = 0, int selected = 0)
        {
            var ctrl     = new Apis.CityController(CityService);
            var response = ctrl.GetAsSelectList(regionID, selected) as OkNegotiatedContentResult <List <SelectListItem> >;

            return(Json(response.Content, JsonRequestBehavior.AllowGet));
        }