// GET: TbClientes/Create public IActionResult Create() { ViewData["IdPagamento"] = new SelectList(_context.Set <TbPagamento>(), "IdPagamento", "FormaPagamento"); return(View()); }
// GET: TbDisciplinas/Create public IActionResult Create() { ViewData["IdCurso"] = new SelectList(_context.TbCursos, "IdCursos", "Ementa"); ViewData["IdProfessor"] = new SelectList(_context.Set <TbProfessor>(), "IdProfessor", "Email"); return(View()); }