public ProductCostHistoryCollection GetProductCostHistoryCollection(string whereExpression, string orderByExpression) { ProductCostHistoryCollection col = new ProductCostHistoryCollection(); try { col = data.GetAllProductCostHistorysDynamicCollection(whereExpression, orderByExpression); } catch (Exception ex) { log.Write(ex.Message, "GetProductCostHistoryCollection"); throw (ex); } finally { data = null; } return(col); }
public ProductCostHistoryCollection GetAllProductCostHistoryCollection() { ProductCostHistoryCollection col = new ProductCostHistoryCollection(); try { col = data.GetAllProductCostHistorysCollection(); } catch (Exception ex) { log.Write(ex.Message, "GetAllProductCostHistoryCollection"); throw (ex); } finally { data = null; } return(col); }