예제 #1
0
 // 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());
 }