public InstructoresController(ApplicationDbContext context)
 {
     _context   = context;
     instructor = new InstructorModels(context);
 }
示例#2
0
 public InstructoresController(ApplicationDbContext context)
 {
     _context = context;
     // 2 inicializa la instancia
     instructor = new InstructorModels(context);
 }