Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }