Exemplo n.º 1
0
        public List <ProductInfo> GetProductSortingWithDelete(int pc_id, int sorting)
        {
            List <ProductInfo> infos  = new List <ProductInfo>();
            IDataReader        reader = db.GetProductSortingWithDelete(pc_id, sorting).CreateDataReader();

            while (reader.Read())
            {
                infos.Add(ProductInfo.Populate(reader));
            }
            return(infos);
        }