Ejemplo n.º 1
0
        public ProductVendorCollection GetProductVendorsCollection(string whereExpression, string orderByExpression)
        {
            ProductVendorData       data = new ProductVendorData();
            ProductVendorCollection col  = new ProductVendorCollection();

            try
            {
                col = data.GetAllProductVendorDynamicCollection(whereExpression, orderByExpression);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetProductVendorsCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
Ejemplo n.º 2
0
        public ProductVendorCollection GetAllProductVendorsCollection()
        {
            ProductVendorData       data = new ProductVendorData();
            ProductVendorCollection col  = new ProductVendorCollection();

            try
            {
                col = data.GetAllProductVendorCollection();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllProductVendorsCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }