Example #1
0
        ///<Summary>
        ///CurrentProductListCollection
        ///This method returns the collection of BOCurrentProductList objects
        ///</Summary>
        ///<returns>
        ///IList[IBOCurrentProductList]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOCurrentProductList> CurrentProductListCollection(ICurrentProductListRepository iCurrentProductListRepository)
        {
            Doing(null);
            try
            {
                IList <IBOCurrentProductList>  boCurrentProductListCollection  = new List <IBOCurrentProductList>();
                IList <IDAOCurrentProductList> daoCurrentProductListCollection = iCurrentProductListRepository.SelectAll();
                Done(null);

                foreach (IDAOCurrentProductList daoCurrentProductList in daoCurrentProductListCollection)
                {
                    boCurrentProductListCollection.Add(new BOCurrentProductList(daoCurrentProductList));
                }

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