// GET: Contracts/Create public IActionResult Create() { ViewData["PlayerId"] = new SelectList(_context.Set <Player>(), "Id", "FirstName"); ViewData["TeamId"] = new SelectList(_context.Set <Team>(), "Id", "City"); return(View()); }