public bool AgregarEntrevista(Entrevista Entrevista) { using (SQLContexto contexto = new SQLContexto()) { EntrevistaRepo entrevistaRepo = new EntrevistaRepo(contexto); return(entrevistaRepo.Insertar(Entrevista)); } }
public bool ModificarEntrevista(Entrevista Entrevista) { using (SQLContexto contexto = new SQLContexto()) { EntrevistaRepo entrevistaRepo = new EntrevistaRepo(contexto); return(entrevistaRepo.Actualizar(Entrevista)); } }
public List <Entrevista> TraerEntrevistas() { using (SQLContexto contexto = new SQLContexto()) { EntrevistaRepo entrevistaRepo = new EntrevistaRepo(contexto); return(entrevistaRepo.TraerTodo()); } }
public bool EliminarEntrevista(string Codigo) { using (SQLContexto contexto = new SQLContexto()) { EntrevistaRepo entrevistaRepo = new EntrevistaRepo(contexto); return(entrevistaRepo.Eliminar(new Entrevista { Codigo = new Guid(Codigo) })); } }
public Entrevista TraerEntrevista(string Codigo) { using (SQLContexto contexto = new SQLContexto()) { EntrevistaRepo entrevistaRepo = new EntrevistaRepo(contexto); Entrevista entrevista = entrevistaRepo.Traer(new Entrevista { Codigo = new Guid(Codigo) }); entrevista.ProcesoSeleccion = this.HidratarProcesoSeleccion(entrevista); entrevista.Entrevistador = this.HidratarUsuario(entrevista); return(entrevista); } }