public bool ModificarProcesoSeleccion(ProcesoSeleccion ProcesoSeleccion)
 {
     using (SQLContexto contexto = new SQLContexto())
     {
         ProcesoSeleccionRepo procesoSeleccionRepo = new ProcesoSeleccionRepo(contexto);
         return(procesoSeleccionRepo.Actualizar(ProcesoSeleccion));
     }
 }
 public bool AgregarProcesoSeleccion(ProcesoSeleccion ProcesoSeleccion)
 {
     using (SQLContexto contexto = new SQLContexto())
     {
         ProcesoSeleccionRepo procesoSeleccionRepo = new ProcesoSeleccionRepo(contexto);
         return(procesoSeleccionRepo.Insertar(ProcesoSeleccion));
     }
 }
 public List <ProcesoSeleccion> TraerProcesosSeleccion()
 {
     using (SQLContexto contexto = new SQLContexto())
     {
         ProcesoSeleccionRepo procesoSeleccionRepo = new ProcesoSeleccionRepo(contexto);
         return(procesoSeleccionRepo.TraerTodo());
     }
 }
Exemple #4
0
 private ProcesoSeleccion HidratarProcesoSeleccion(Entrevista entrevista)
 {
     using (SQLContexto contexto = new SQLContexto())
     {
         ProcesoSeleccionRepo procesoSeleccionRepo = new ProcesoSeleccionRepo(contexto);
         return(procesoSeleccionRepo.Traer(entrevista.ProcesoSeleccion));
     }
 }
 public bool EliminarProcesoSeleccion(string Codigo)
 {
     using (SQLContexto contexto = new SQLContexto())
     {
         ProcesoSeleccionRepo procesoSeleccionRepo = new ProcesoSeleccionRepo(contexto);
         return(procesoSeleccionRepo.Eliminar(new ProcesoSeleccion {
             Codigo = new Guid(Codigo)
         }));
     }
 }
        public ProcesoSeleccion TraerProcesoSeleccion(string Codigo)
        {
            using (SQLContexto contexto = new SQLContexto())
            {
                ProcesoSeleccionRepo procesoSeleccionRepo = new ProcesoSeleccionRepo(contexto);

                ProcesoSeleccion proceso = procesoSeleccionRepo.Traer(new ProcesoSeleccion {
                    Codigo = new Guid(Codigo)
                });

                proceso.Reclutador = this.HidratarReclutador(proceso);
                proceso.Candidato  = this.HidratarCandidato(proceso);
                proceso.Posicion   = this.HidratarPosicion(proceso);

                return(proceso);
            }
        }