// GET: ShowCases/Create
 public IActionResult Create()
 {
     ViewData["SeriesId"]  = new SelectList(_context.Series, "Id", "SeriesName");
     ViewData["ArenaId"]   = new SelectList(_context.Arena, "Id", "ArenaName");
     ViewData["PersonId"]  = new SelectList(_context.Set <Person>(), "Id", "FullName");
     ViewData["PersonId1"] = new SelectList(_context.Set <Person>(), "Id", "FullName");
     ViewData["PersonId2"] = new SelectList(_context.Set <Person>(), "Id", "FullName");
     ViewData["PersonId3"] = new SelectList(_context.Set <Person>(), "Id", "FullName");
     ViewData["PersonId5"] = new SelectList(_context.Set <Person>(), "Id", "FullName");
     ViewData["ArenaId1"]  = new SelectList(_context.Arena, "Id", "LocationString");
     ViewData["PersonId4"] = new SelectList(_context.Set <Person>(), "Id", "FullName");
     return(View());
 }
示例#2
0
 // GET: Teams/Create
 public IActionResult Create()
 {
     ViewData["PersonId1"] = new SelectList(_context.Set <Person>(), "Id", "Id");
     ViewData["PersonId2"] = new SelectList(_context.Set <Person>(), "Id", "Id");
     ViewData["PersonId"]  = new SelectList(_context.Set <Person>(), "Id", "Id");
     return(View());
 }