Пример #1
0
        public List <ArticuloN> ListarArticulos()
        {
            _Articulo = new Datos.ArticuloD();
            DataTable        _DT       = _Articulo.ListarArticulosPorCuenta(this.Id);
            List <ArticuloN> _listaART = new List <ArticuloN>();

            if (_DT != null)
            {
                for (int a = 0; a < _DT.Rows.Count; a++)
                {
                    _listaART.Add(new ArticuloN(int.Parse(_DT.Rows[a]["Id"].ToString())));
                }
                return(_listaART);
            }
            else
            {
                return(null);
            }
        }
Пример #2
0
        public List<ArticuloN> ListarArticulos()
        {
            _Articulo = new Datos.ArticuloD();
            DataTable _DT = _Articulo.ListarArticulosPorCuenta(this.Id);
            List<ArticuloN> _listaART = new List<ArticuloN>();
            if (_DT != null)
            {
                for (int a = 0; a < _DT.Rows.Count; a++)
                {
                    _listaART.Add(new ArticuloN(int.Parse(_DT.Rows[a]["Id"].ToString())));
                }
                return _listaART;
            }
            else 
            {
                return null;
            }


        }