Пример #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);
        }
Пример #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);
        }