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));
     }
 }
Example #3
0
 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)
         }));
     }
 }
Example #5
0
        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);
            }
        }