Exemplo n.º 1
0
        /// <summary>
        /// Repository for Global Stock Report
        /// </summary>
        /// <returns></returns>
        public List <GlobalStock> GetGlobalStock()
        {
            List <GlobalStock> stocks = null;

            stocks = ViewDataAccess.GetGlobalStock(_connectionString);

            return(stocks);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Repository for Global Stock Report
        /// </summary>
        /// <returns></returns>
        public List <GlobalStock> GetGlobalStock()
        {
            List <GlobalStock> stocks = null;

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

                stocks = ViewDataAccess.GetGlobalStock(connection);
            }
            return(stocks);
        }