コード例 #1
0
 // GET: RentingLots/Create
 public IActionResult Create()
 {
     ViewData["BuildingId"] = new SelectList(_repo.GetAllBuildings(), "Id", "Name");
     return(View());
 }
コード例 #2
0
 // GET: Buildings
 public IActionResult Index()
 {
     return(View(_repo.GetAllBuildings()));
 }