Ejemplo n.º 1
0
        public List <Product> GetProductsByActive(bool active = true)
        {
            List <Product> products = null;

            try
            {
                products = _productAccessor.SelectProductByActive(active);
            }
            catch (Exception ex)
            {
                throw new ApplicationException("Product List unavailable.", ex);
            }
            return(products);
        }