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); }
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); }