Esempio n. 1
0
        public Products obtenerProductoPorId(int idProducto)
        {
            try
            {
                BLogica.BL.Producto _Proc = new BLogica.BL.Producto();

                Products sProducto = _Proc.obtenerProductoPorId(idProducto);

                return(sProducto);
            }
            catch (Exception)
            {
                throw;
            }
        }
Esempio n. 2
0
        public IEnumerable <_Suppliers> ListarProveedor()
        {
            try
            {
                BLogica.BL.Producto _Proc = new BLogica.BL.Producto();

                IEnumerable <_Suppliers> ListadoProveedores = _Proc.ListarProveedor();

                return(ListadoProveedores);
            }
            catch (Exception)
            {
                throw;
            }
        }
Esempio n. 3
0
        public IEnumerable <_Products> FiltrarProductoPorNombre(string dNombre)
        {
            try
            {
                BLogica.BL.Producto _Proc = new BLogica.BL.Producto();

                IEnumerable <_Products> ResuList = _Proc.FiltrarProductoPorNombre(dNombre);

                return(ResuList);
            }
            catch (Exception)
            {
                throw;
            }
        }
Esempio n. 4
0
        public IEnumerable <_Products> ListarProductos()
        {
            try
            {
                BLogica.BL.Producto _Proc = new BLogica.BL.Producto();

                IEnumerable <_Products> ResuList = _Proc.ListarProductos();

                return(ResuList);
            }
            catch (Exception)
            {
                throw;
            }
        }
Esempio n. 5
0
        public int validarNombre(int idProducto, string nProducto)
        {
            try
            {
                BLogica.BL.Producto _Proc = new BLogica.BL.Producto();
                int sVALIDA = 0;

                sVALIDA = _Proc.validarNombre(idProducto, nProducto);

                return(sVALIDA);
            }
            catch (Exception)
            {
                throw;
            }
        }
Esempio n. 6
0
        public int registrarProducto([FromBody] Products m)
        {
            try
            {
                int sINSERT = 0;

                BLogica.BL.Producto _Proc = new BLogica.BL.Producto();

                sINSERT = _Proc.registrarProducto(m);

                return(sINSERT);
            }
            catch (Exception)
            {
                throw;
            }
        }
Esempio n. 7
0
        public int eliminarProducto(int idProducto)
        {
            try
            {
                int sDELETE = 0;

                BLogica.BL.Producto _Proc = new BLogica.BL.Producto();

                sDELETE = _Proc.eliminarProducto(idProducto);

                return(sDELETE);
            }
            catch (Exception)
            {
                throw;
            }
        }