// GET: Trocas/Create public IActionResult Create() { ViewData["EstadoTrocaId"] = new SelectList(_context.Set <Estado>(), "EstadoTrocaId", "EstadoTrocaId"); ViewData["FuncionarioId"] = new SelectList(_context.Funcionario, "FuncionarioId", "Nome"); ViewData["HorarioATrocarId"] = new SelectList(_context.Set <HorarioATrocar>(), "HorarioATrocarId", "HorarioATrocarId"); ViewData["HorarioParaTrocaId"] = new SelectList(_context.Set <HorarioParaTroca>(), "HorarioParaTrocaId", "HorarioParaTrocaId"); return(View()); }