// GET: Users/Create public IActionResult Create() { ViewData["UserTypeId"] = new SelectList(_context.Set <UserType>(), "UserTypeId", "UserTypeId"); return(View()); }
// GET: Buildings/Create public IActionResult Create() { ViewData["BuildingTypeId"] = new SelectList(_context.Set <BuildingType>(), "BuildingTypeId", "BuildingTypeId"); ViewData["UserId"] = new SelectList(_context.User, "UserId", "UserId"); return(View()); }