public Profesor GuardaProfe(String NumEmpleado, String Nombres, String Apellidos, String Telefono, String Cedula, String Correo, String Genero, DateTime FechaIngreso, String NivelAcad, String TipoCarga, String IDDept, String TipoContrato, int?Cargo, int?Usuario) { var conectData = new HIGADDv1Entities4(); if (conectData.SP_GuardarProfe1(NumEmpleado, Nombres, Apellidos, Telefono, Cedula, Correo, Genero, FechaIngreso, NivelAcad, TipoCarga, IDDept, TipoContrato, Cargo, Usuario) > 0) { return(conectData.SP_VerProfe1().FirstOrDefault()); } return(conectData.SP_VerProfe1().FirstOrDefault()); }
public Profesor EliminarPrf(String IDProf) { var dataConect = new HIGADDv1Entities4(); if (dataConect.SP_EliminarProfe1(IDProf) > 0) { return(dataConect.SP_VerProfe1().FirstOrDefault()); } return(dataConect.SP_VerProfe1().FirstOrDefault()); }
public Semestre GuardarElSemestre(DateTime fechaini, DateTime fechafin, String nombre, String feriado, String anioacad) { var conectDatos = new HIGADDv1Entities4(); if (conectDatos.SP_GuardarSemestre1(fechaini, fechafin, nombre, feriado, anioacad) > 0) { return(conectDatos.SP_VerSemestre1().FirstOrDefault()); } return(conectDatos.SP_VerSemestre1().FirstOrDefault()); }
public Carreras VerCarrera() { var conecDatos = new HIGADDv1Entities4(); return(conecDatos.SP_VerCarreras1().FirstOrDefault()); }
public Profesor BuscarProf(String IDProfe) { var dataConect = new HIGADDv1Entities4(); return(dataConect.SP_BuscarProfe1(IDProfe).FirstOrDefault()); }