Пример #1
0
        /// <summary>
        /// Repository for Distribution Centre Stock Report
        /// </summary>
        /// <returns></returns>
        public List <DistributionCentreStock> GetDistributionCentreStock()
        {
            List <DistributionCentreStock> stockList = null;

            stockList = ViewDataAccess.GetDistributionCentreStock(_connectionString);
            return(stockList);
        }
Пример #2
0
        /// <summary>
        /// Repository for Distribution Centre Stock Report
        /// </summary>
        /// <returns></returns>
        public List <DistributionCentreStock> GetDistributionCentreStock()
        {
            List <DistributionCentreStock> stockList = null;

            using (SqlConnection connection = new SqlConnection(_connectionString))
            {
                connection.Open();

                stockList = ViewDataAccess.GetDistributionCentreStock(connection);
            }
            return(stockList);
        }