private Posicion HidratarPosicion(ProcesoSeleccion procesoSeleccion) { using (SQLContexto contexto = new SQLContexto()) { PosicionRepo posicionRepo = new PosicionRepo(contexto); return(posicionRepo.Traer(procesoSeleccion.Posicion)); } }
public bool ModificarPosicion(Posicion Posicion) { using (SQLContexto contexto = new SQLContexto()) { PosicionRepo posicionRepo = new PosicionRepo(contexto); return(posicionRepo.Actualizar(Posicion)); } }
//private AnalyticsRepo analyticsRepo = new AnalyticsRepo(); public List <Posicion> TraerPosiciones() { using (SQLContexto contexto = new SQLContexto()) { PosicionRepo posicionRepo = new PosicionRepo(contexto); return(posicionRepo.TraerTodo()); } }
public bool AgregarPosicion(Posicion Posicion) { Posicion.Codigo = Guid.NewGuid(); using (SQLContexto contexto = new SQLContexto()) { PosicionRepo posicionRepo = new PosicionRepo(contexto); return(posicionRepo.Insertar(Posicion)); } }
public bool EliminarPosicion(string Codigo) { using (SQLContexto contexto = new SQLContexto()) { PosicionRepo posicionRepo = new PosicionRepo(contexto); return(posicionRepo.Eliminar(new Posicion { Codigo = new Guid(Codigo) })); } }
public Posicion TraerPosicion(string Codigo) { using (SQLContexto contexto = new SQLContexto()) { PosicionRepo posicionRepo = new PosicionRepo(contexto); return(posicionRepo.Traer(new Posicion { Codigo = new Guid(Codigo) })); } }