コード例 #1
0
        /// <summary>
        /// Repository for Stocktaking Report
        /// </summary>
        /// <param name="centreId"></param>
        /// <returns></returns>
        public List <StockTaking> GetStocktaking(int centreId)
        {
            List <StockTaking> packageList = null;

            packageList = ViewDataAccess.GetStocktaking(_connectionString, centreId);

            return(packageList);
        }
コード例 #2
0
        /// <summary>
        /// Repository for Stocktaking Report
        /// </summary>
        /// <param name="centreId"></param>
        /// <returns></returns>
        public List <StocktakingPackage> GetStocktaking(int centreId)
        {
            List <StocktakingPackage> packageList = null;

            using (SqlConnection connection = new SqlConnection(_connectionString))
            {
                connection.Open();
                packageList = ViewDataAccess.GetStocktaking(connection, centreId);
            }
            return(packageList);
        }