// GET: RentingLots/Create public IActionResult Create() { ViewData["BuildingId"] = new SelectList(_repo.GetAllBuildings(), "Id", "Name"); return(View()); }
// GET: Buildings public IActionResult Index() { return(View(_repo.GetAllBuildings())); }