public FacultadController(PonenciaContext context) { _context = context; if (_context.Facultad.Count() == 0) { _context.Facultad.Add(new Facultad { NombreFacultad = "INGENIERIAS Y TECNOLOGIAS" }); _context.Facultad.Add(new Facultad { NombreFacultad = "SALUD" }); _context.SaveChanges(); } }
//envio de correo public DocenteController(PonenciaContext context) { _context = context; if (_context.Docente.Count() == 0) { _context.Docente.Add(new Docente { id = "1", Nombres = "Carlos ", Apellidos = "Daza", Telefono = "101291212", VinculoInst = "docente", Email = "*****@*****.**", direccion = "calle linda", Pass = "******", FacultadId = 1, GrupoInvestigacionId = 1 }); _context.Docente.Add(new Docente { id = "2", Nombres = "Luis Manué", Apellidos = "Diaz", Telefono = "101291212", VinculoInst = "docente", Email = "*****@*****.**", direccion = "calle cuba", Pass = "******", FacultadId = 1, GrupoInvestigacionId = 1 }); _context.SaveChanges(); } }
public GrupoInvestigacionController(PonenciaContext context) { _context = context; if (_context.GrupoInvestigacion.Count() == 0) { _context.GrupoInvestigacion.Add(new GrupoInvestigacion { NombreGrupo = "Grupo de luis" }); _context.GrupoInvestigacion.Add(new GrupoInvestigacion { NombreGrupo = "Grupo de Carlos" }); _context.SaveChanges(); } }
public TransporteController(PonenciaContext context) { _context = context; if (_context.Transporte.Count() == 0) { _context.Transporte.Add(new Transporte { TipoTransporte = "aereo", ValorTrasporte = 2000, SolicitudId = 1 }); _context.Transporte.Add(new Transporte { TipoTransporte = "aereo", ValorTrasporte = 2000, SolicitudId = 2 }); _context.SaveChanges(); } }
public SemilleroController(PonenciaContext context) { _context = context; if (_context.Semillero.Count() == 0) { _context.Semillero.Add(new Semillero { NombreSemillero = "Grupo de luis", GrupoInvestigacionId = 1 }); _context.Semillero.Add(new Semillero { NombreSemillero = "Grupo de Carlos", GrupoInvestigacionId = 2 }); _context.SaveChanges(); } }
public EstudianteController(PonenciaContext context) { _context = context; if (_context.Estudiante.Count() == 0) { _context.Estudiante.Add(new Estudiante { NombreEstudiante = "luis Manuel", ApellidoEstudiante = "Diaz Sequea", SemilleroId = 1 }); _context.Estudiante.Add(new Estudiante { NombreEstudiante = "Carlos", ApellidoEstudiante = "Daza Murgas", SemilleroId = 1 }); _context.SaveChanges(); } }
public AdministradorController(PonenciaContext context) { _context = context; if (_context.Administrador.Count() == 0) { _context.Administrador.Add(new Administrador { id = "123", Nombres = "Carlos ", Apellidos = "Daza", Usuario = "*****@*****.**", Pass = "******" }); _context.Administrador.Add(new Administrador { id = "321", Nombres = "Luis ", Apellidos = "Diaz", Usuario = "*****@*****.**", Pass = "******" }); _context.SaveChanges(); } }
public SolicitudController(PonenciaContext context) { _context = context; if (_context.Solicitud.Count() == 0) { _context.Solicitud.Add(new Solicitud { NombrePonencia = "Priorizar el proyecto", FechaEntrega = "Priorizar", EstadoSolicitud = "En espera" }); _context.Solicitud.Add(new Solicitud { NombrePonencia = "Calendario el proyecto", FechaEntrega = "Priorizar", EstadoSolicitud = "En Espera" }); _context.SaveChanges(); } }
public ProgramaController(PonenciaContext context) { _context = context; if (_context.Programa.Count() == 0) { _context.Programa.Add(new Programa { NombrePrograma = "INGENIERIAS DE SISTEMAS", FacultadId = 1 }); _context.Programa.Add(new Programa { NombrePrograma = "INGENIERIA ELECTRONICA", FacultadId = 1 }); _context.SaveChanges(); } }
public EventoController(PonenciaContext context) { _context = context; if (_context.Evento.Count() == 0) { _context.Evento.Add(new Evento { NombreEvento = "Ponencia" , LinkEvento = "luismaajas" , Pais = "colombia", Ciudad = "Bogotá" , Telefono = "30051725445", ValorInscripcion = 30012, FechaEvento = "30/12/20", FechaInicio = "01/12/20", FechaFinal = "01/12/23", NumeroDias = 3, Entidad = "Young", Email = "*****@*****.**", SolicitudId = 1 }); _context.Evento.Add(new Evento { NombreEvento = "Ponencia" , LinkEvento = "luismaajas", Pais = "colombia", Ciudad = "Valledupar", Telefono = "30051725445", ValorInscripcion = 30012, FechaEvento = "30/12/20", FechaInicio = "01/12/20", FechaFinal = "01/12/23", NumeroDias = 3, Email = "*****@*****.**", Entidad = "life book", SolicitudId = 2 }); _context.SaveChanges(); } }