private Posicion HidratarPosicion(ProcesoSeleccion procesoSeleccion)
 {
     using (SQLContexto contexto = new SQLContexto())
     {
         PosicionRepo posicionRepo = new PosicionRepo(contexto);
         return(posicionRepo.Traer(procesoSeleccion.Posicion));
     }
 }
Exemplo n.º 2
0
 public bool ModificarPosicion(Posicion Posicion)
 {
     using (SQLContexto contexto = new SQLContexto())
     {
         PosicionRepo posicionRepo = new PosicionRepo(contexto);
         return(posicionRepo.Actualizar(Posicion));
     }
 }
Exemplo n.º 3
0
        //private AnalyticsRepo analyticsRepo = new AnalyticsRepo();

        public List <Posicion> TraerPosiciones()
        {
            using (SQLContexto contexto = new SQLContexto())
            {
                PosicionRepo posicionRepo = new PosicionRepo(contexto);
                return(posicionRepo.TraerTodo());
            }
        }
Exemplo n.º 4
0
 public bool AgregarPosicion(Posicion Posicion)
 {
     Posicion.Codigo = Guid.NewGuid();
     using (SQLContexto contexto = new SQLContexto())
     {
         PosicionRepo posicionRepo = new PosicionRepo(contexto);
         return(posicionRepo.Insertar(Posicion));
     }
 }
Exemplo n.º 5
0
 public bool EliminarPosicion(string Codigo)
 {
     using (SQLContexto contexto = new SQLContexto())
     {
         PosicionRepo posicionRepo = new PosicionRepo(contexto);
         return(posicionRepo.Eliminar(new Posicion {
             Codigo = new Guid(Codigo)
         }));
     }
 }
Exemplo n.º 6
0
 public Posicion TraerPosicion(string Codigo)
 {
     using (SQLContexto contexto = new SQLContexto())
     {
         PosicionRepo posicionRepo = new PosicionRepo(contexto);
         return(posicionRepo.Traer(new Posicion {
             Codigo = new Guid(Codigo)
         }));
     }
 }