示例#1
0
        // GET: Stations/Create
        public ActionResult Create()
        {
            var regions = _regionAppService.GetRegions().Select(c => new SelectListItem {
                Value = c.Id.ToString(), Text = c.Name
            });
            var zones = _zoneAppService.GetZones().Select(c => new SelectListItem {
                Value = c.Id.ToString(), Text = c.Name
            });

            ViewBag.RegionId = regions;
            ViewBag.ZoneId   = zones;
            return(View());
        }
示例#2
0
        public ActionResult Index()
        {
            var zones = _zoneAppService.GetZones();

            return(View(zones));
        }