예제 #1
0
        public List <serviciostock> Lserviciostock(String id)
        {
            Buscadores           bus             = new Buscadores();
            List <serviciostock> Lserviciostocks = bus.Lstockservi();
            List <serviciostock> NLserviciostock = new List <serviciostock>();

            NLserviciostock = Lserviciostocks.FindAll(s => s.id_servicio == int.Parse(id));

            return(NLserviciostock);
        }
예제 #2
0
        public List <serviciostock> Lserviciostock(List <servicio> Lservicios)
        {
            Buscadores           bus             = new Buscadores();
            List <serviciostock> Lserviciostocks = bus.Lstockservi();
            List <serviciostock> NLserviciostock = new List <serviciostock>();

            foreach (servicio x in Lservicios)
            {
                foreach (serviciostock t in Lserviciostocks)
                {
                    if (x.id_servicios == t.id_servicio)
                    {
                        NLserviciostock.Add(t);
                    }
                }
            }


            return(NLserviciostock);
        }