Пример #1
0
 // GET: Asignacion/Create
 public IActionResult Create()
 {
     ViewData["CursoID"]      = new SelectList(_context.Set <Curso>(), "CursoID", "CursoID");
     ViewData["InstructorID"] = new SelectList(_context.Set <Instructor>(), "InstructorID", "InstructorID");
     return(View());
 }
Пример #2
0
 // GET: Instructor/Create
 public IActionResult Create()
 {
     ViewData["PersonaID"] = new SelectList(_context.Set <Persona>(), "PersonaID", "PersonaID");
     return(View());
 }