Example #1
0
        public IBOCurrentProductList BOCurrentProductList(ICurrentProductListRepository repo)
        {
            BOCurrentProductList boCurrentProductList = (BOCurrentProductList)BOCurrentProductList();

            boCurrentProductList.Repository = repo;
            return(boCurrentProductList);
        }
Example #2
0
 ///<Summary>
 ///CurrentProductListCollectionCount
 ///This method returns the collection count of BOCurrentProductList objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 CurrentProductListCollectionCount(ICurrentProductListRepository iCurrentProductListRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iCurrentProductListRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
Example #3
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);
            }
        }