Esempio n. 1
0
        public List <stock> Lstockuso(List <serviciostock> Lstockservi)
        {
            Buscadores   bus         = new Buscadores();
            List <stock> Lstock      = bus.Lstock();
            List <stock> stockactivo = new List <stock>();

            foreach (stock Stock in Lstock)
            {
                foreach (serviciostock Servistock in Lstockservi)
                {
                    if (Stock.id_stock == Servistock.id_stock)
                    {
                        stockactivo.Add(Stock);
                    }
                }
            }
            return(stockactivo);
        }