private Usuario HidratarReclutador(ProcesoSeleccion procesoSeleccion) { using (SQLContexto contexto = new SQLContexto()) { UsuarioRepo usuarioRepo = new UsuarioRepo(contexto); return(usuarioRepo.Traer(procesoSeleccion.Reclutador)); } }
private Posicion HidratarPosicion(ProcesoSeleccion procesoSeleccion) { using (SQLContexto contexto = new SQLContexto()) { PosicionRepo posicionRepo = new PosicionRepo(contexto); return(posicionRepo.Traer(procesoSeleccion.Posicion)); } }
private Candidato HidratarCandidato(ProcesoSeleccion procesoSeleccion) { using (SQLContexto contexto = new SQLContexto()) { CandidatoRepo candidatoRepo = new CandidatoRepo(contexto); return(candidatoRepo.Traer(procesoSeleccion.Candidato)); } }
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 <Entrevista> TraerPorProceso(ProcesoSeleccion Proceso) { DataTable data = this.contexto.EjecutarQuery(SPTraerPorProceso, this.PrepararParametros(EAccion.TraerPorProceso, new Entrevista { ProcesoSeleccion = Proceso })); List <Entrevista> lista = new List <Entrevista>(); foreach (DataRow row in data.Rows) { Entrevista entidad = this.MapearDataRow(row); lista.Add(entidad); } return(lista); }
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); } }