private ProcesoSeleccion HidratarProcesoSeleccion(Entrevista entrevista) { using (SQLContexto contexto = new SQLContexto()) { ProcesoSeleccionRepo procesoSeleccionRepo = new ProcesoSeleccionRepo(contexto); return(procesoSeleccionRepo.Traer(entrevista.ProcesoSeleccion)); } }
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); } }