示例#1
0
        public async Task <ActionResult> Create()
        {
            SelectList StreetNames = new SelectList(await buildingService.GetStreetNames());

            ViewBag.StreetNames = StreetNames;
            SelectList BuildingNames = new SelectList(await buildingService.GetBuildingNames());

            ViewBag.BuildingNames = BuildingNames;
            return(View());
        }