Пример #1
0
        ///<Summary>
        ///AlphabeticalListOfProductsCollection
        ///This method returns the collection of BOAlphabeticalListOfProducts objects
        ///</Summary>
        ///<returns>
        ///IList[IBOAlphabeticalListOfProducts]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOAlphabeticalListOfProducts> AlphabeticalListOfProductsCollection(IAlphabeticalListOfProductsRepository iAlphabeticalListOfProductsRepository)
        {
            Doing(null);
            try
            {
                IList <IBOAlphabeticalListOfProducts>  boAlphabeticalListOfProductsCollection  = new List <IBOAlphabeticalListOfProducts>();
                IList <IDAOAlphabeticalListOfProducts> daoAlphabeticalListOfProductsCollection = iAlphabeticalListOfProductsRepository.SelectAll();
                Done(null);

                foreach (IDAOAlphabeticalListOfProducts daoAlphabeticalListOfProducts in daoAlphabeticalListOfProductsCollection)
                {
                    boAlphabeticalListOfProductsCollection.Add(new BOAlphabeticalListOfProducts(daoAlphabeticalListOfProducts));
                }

                return(boAlphabeticalListOfProductsCollection);
            }
            catch (Exception ex)
            {
                Failed(null, ex);
                Handle(null, ex);
                return(null);
            }
        }