コード例 #1
0
        /// <summary>
        /// Repository for Distribution Centre Losses Report
        /// </summary>
        /// <returns></returns>
        public List <DistributionCentreLosses> GetDistributionCentreLosses()
        {
            List <DistributionCentreLosses> centreList = null;

            centreList = ViewDataAccess.GetDistributionCentreLosses(_connectionString);
            return(centreList);
        }
コード例 #2
0
        /// <summary>
        /// Repository for Distribution Centre Losses Report
        /// </summary>
        /// <returns></returns>
        public List <DistributionCentreLosses> GetDistributionCentreLosses()
        {
            List <DistributionCentreLosses> centreList = null;

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

                centreList = ViewDataAccess.GetDistributionCentreLosses(connection);
            }
            return(centreList);
        }